summaryrefslogtreecommitdiff
path: root/modes/transparent_udp
diff options
context:
space:
mode:
authorBluesaxorcist <joshua@operatorfoundation.org>2019-08-30 14:58:15 -0500
committerBluesaxorcist <joshua@operatorfoundation.org>2019-08-30 14:58:15 -0500
commitbfc867e0f07555b906ab7f3673aa3f6946a83bf9 (patch)
treefb7ace614f201ec40442b96151a8d3dce57a0ab2 /modes/transparent_udp
parentab43189e79828cd54f8f78c8242e490cdd2770c6 (diff)
added Dust and commented in replicant's code to the four modes for future use
Diffstat (limited to 'modes/transparent_udp')
-rw-r--r--modes/transparent_udp/transparent_udp.go17
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 {