From bfc867e0f07555b906ab7f3673aa3f6946a83bf9 Mon Sep 17 00:00:00 2001 From: Bluesaxorcist Date: Fri, 30 Aug 2019 14:58:15 -0500 Subject: added Dust and commented in replicant's code to the four modes for future use --- modes/transparent_tcp/transparent_tcp.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'modes/transparent_tcp/transparent_tcp.go') 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 { -- cgit v1.2.3