diff options
Diffstat (limited to 'modes/transparent_udp/transparent_udp.go')
-rw-r--r-- | modes/transparent_udp/transparent_udp.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modes/transparent_udp/transparent_udp.go b/modes/transparent_udp/transparent_udp.go index eeb8f35..3352228 100644 --- a/modes/transparent_udp/transparent_udp.go +++ b/modes/transparent_udp/transparent_udp.go @@ -34,6 +34,7 @@ import ( "encoding/binary" "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/shadow" "io" @@ -241,6 +242,22 @@ func ServerSetup(termMon *termmon.TermMonitor, bindaddrString string, ptServerIn log.Errorf("obfs4 transport missing cert argument: %s", args) return } + //case "Replicant": + // Config, ok := args.Get("config") + // if !ok { + // return false, nil + // } + // + // transport := replicant.New(Config) + // listen = transport.Listen + case "Dust": + idPath, ok := args.Get("idPath") + if !ok { + return false, nil + } + + transport := Dust.NewDustServer(idPath) + listen = transport.Listen case "meeklite": Url, ok := args.Get("Url") if !ok { |