diff options
author | Bluesaxorcist <joshua@operatorfoundation.org> | 2019-09-15 20:21:00 -0500 |
---|---|---|
committer | Bluesaxorcist <joshua@operatorfoundation.org> | 2019-09-15 20:21:00 -0500 |
commit | 43d0e72c72600a1bc75518a8dfe31c279b4a9400 (patch) | |
tree | de195d95e1e45d68dcfcf2bbc2a2be1c9b65cbe0 /modes/transparent_tcp | |
parent | 6b048e3e998261a4bc105593e27607cf9d56e223 (diff) |
Added Dust, Meeklite, and Replicant to dispatcher modes
Still needs fixing
Diffstat (limited to 'modes/transparent_tcp')
-rw-r--r-- | modes/transparent_tcp/transparent_tcp.go | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/modes/transparent_tcp/transparent_tcp.go b/modes/transparent_tcp/transparent_tcp.go index a1addf3..5535bd6 100644 --- a/modes/transparent_tcp/transparent_tcp.go +++ b/modes/transparent_tcp/transparent_tcp.go @@ -34,6 +34,7 @@ import ( options2 "github.com/OperatorFoundation/shapeshifter-dispatcher/common" "github.com/OperatorFoundation/shapeshifter-dispatcher/common/pt_extras" "github.com/OperatorFoundation/shapeshifter-transports/transports/Dust" + replicant "github.com/OperatorFoundation/shapeshifter-transports/transports/Replicant" "github.com/OperatorFoundation/shapeshifter-transports/transports/meeklite" "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs2" "io" @@ -167,18 +168,18 @@ func ServerSetup(termMon *termmon.TermMonitor, bindaddrString string, ptServerIn case "obfs4": transport := obfs4.NewObfs4Server(statedir) listen = transport.Listen - //case "Replicant": - // shargs, aok := args["Replicant"] - // if !aok { - // return false, nil - // } - // - // config, ok := shargs.Get("config") - // if !ok { - // return false, nil - // } - // transport := replicant.New(config) - // listen = transport.Listen + case "Replicant": + shargs, aok := args["Replicant"] + if !aok { + return false, nil + } + + _, ok := shargs.Get("config") + if !ok { + return false, nil + } + transport := replicant.New(replicant.Config{}) + listen = transport.Listen case "Dust": shargs, aok := args["Dust"] if !aok { @@ -339,3 +340,4 @@ func copyLoop(a net.Conn, b net.Conn) error { return nil } + |