diff options
author | Bluesaxorcist <joshua@operatorfoundation.org> | 2019-08-30 14:58:15 -0500 |
---|---|---|
committer | Bluesaxorcist <joshua@operatorfoundation.org> | 2019-08-30 14:58:15 -0500 |
commit | bfc867e0f07555b906ab7f3673aa3f6946a83bf9 (patch) | |
tree | fb7ace614f201ec40442b96151a8d3dce57a0ab2 /modes/transparent_tcp | |
parent | ab43189e79828cd54f8f78c8242e490cdd2770c6 (diff) |
added Dust and commented in replicant's code to the four modes for future use
Diffstat (limited to 'modes/transparent_tcp')
-rw-r--r-- | modes/transparent_tcp/transparent_tcp.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modes/transparent_tcp/transparent_tcp.go b/modes/transparent_tcp/transparent_tcp.go index def348f..faffa15 100644 --- a/modes/transparent_tcp/transparent_tcp.go +++ b/modes/transparent_tcp/transparent_tcp.go @@ -32,6 +32,7 @@ package transparent_tcp import ( "fmt" "github.com/OperatorFoundation/shapeshifter-dispatcher/common/pt_extras" + "github.com/OperatorFoundation/shapeshifter-transports/transports/Dust" "github.com/OperatorFoundation/shapeshifter-transports/transports/meeklite" "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs2" "io" @@ -165,6 +166,30 @@ 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 "Dust": + shargs, aok := args["Dust"] + if !aok { + return false, nil + } + + idPath, ok := shargs.Get("Url") + if !ok { + return false, nil + } + transport := Dust.NewDustServer(idPath) + listen = transport.Listen case "meeklite": shargs, aok := args["meeklite"] if !aok { |