diff options
author | Bluesaxorcist <joshua@operatorfoundation.org> | 2019-09-14 18:56:03 -0500 |
---|---|---|
committer | Bluesaxorcist <joshua@operatorfoundation.org> | 2019-09-14 18:56:03 -0500 |
commit | 6b048e3e998261a4bc105593e27607cf9d56e223 (patch) | |
tree | 713da1e089cfb861da8646ab96239be10c099800 /modes/transparent_tcp | |
parent | bfc867e0f07555b906ab7f3673aa3f6946a83bf9 (diff) |
refactoring the modes
Diffstat (limited to 'modes/transparent_tcp')
-rw-r--r-- | modes/transparent_tcp/transparent_tcp.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modes/transparent_tcp/transparent_tcp.go b/modes/transparent_tcp/transparent_tcp.go index faffa15..a1addf3 100644 --- a/modes/transparent_tcp/transparent_tcp.go +++ b/modes/transparent_tcp/transparent_tcp.go @@ -31,6 +31,7 @@ package transparent_tcp import ( "fmt" + options2 "github.com/OperatorFoundation/shapeshifter-dispatcher/common" "github.com/OperatorFoundation/shapeshifter-dispatcher/common/pt_extras" "github.com/OperatorFoundation/shapeshifter-transports/transports/Dust" "github.com/OperatorFoundation/shapeshifter-transports/transports/meeklite" @@ -91,8 +92,8 @@ func clientHandler(target string, termMon *termmon.TermMonitor, name string, opt defer termMon.OnHandlerFinish() var dialer func() (net.Conn, error) - - args, argsErr := pt.ParsePT2ClientParameters(options) +//this is where the refactoring begins + args, argsErr := options2.ParseOptions(options) if argsErr != nil { log.Errorf("Error parsing transport options: %s", options) return |