summaryrefslogtreecommitdiff
path: root/modes/transparent_udp
diff options
context:
space:
mode:
authorBluesaxorcist <joshua@operatorfoundation.org>2019-09-15 20:21:00 -0500
committerBluesaxorcist <joshua@operatorfoundation.org>2019-09-15 20:21:00 -0500
commit43d0e72c72600a1bc75518a8dfe31c279b4a9400 (patch)
treede195d95e1e45d68dcfcf2bbc2a2be1c9b65cbe0 /modes/transparent_udp
parent6b048e3e998261a4bc105593e27607cf9d56e223 (diff)
Added Dust, Meeklite, and Replicant to dispatcher modes
Still needs fixing
Diffstat (limited to 'modes/transparent_udp')
-rw-r--r--modes/transparent_udp/transparent_udp.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/modes/transparent_udp/transparent_udp.go b/modes/transparent_udp/transparent_udp.go
index 05235d7..8d29453 100644
--- a/modes/transparent_udp/transparent_udp.go
+++ b/modes/transparent_udp/transparent_udp.go
@@ -36,6 +36,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/shadow"
"io"
@@ -243,14 +244,15 @@ 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 "Replicant":
+ config, ok := args.Get("config")
+ fmt.Println(config)
+ if !ok {
+ return false, nil
+ }
+
+ transport := replicant.New(replicant.Config{})
+ listen = transport.Listen
case "Dust":
idPath, ok := args.Get("idPath")
if !ok {