summaryrefslogtreecommitdiff
path: root/modes/stun_udp/stun_udp.go
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/stun_udp/stun_udp.go
parentab43189e79828cd54f8f78c8242e490cdd2770c6 (diff)
added Dust and commented in replicant's code to the four modes for future use
Diffstat (limited to 'modes/stun_udp/stun_udp.go')
-rw-r--r--modes/stun_udp/stun_udp.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/modes/stun_udp/stun_udp.go b/modes/stun_udp/stun_udp.go
index 511d7c9..f12e69e 100644
--- a/modes/stun_udp/stun_udp.go
+++ b/modes/stun_udp/stun_udp.go
@@ -32,6 +32,7 @@ package stun_udp
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/shadow"
"io"
@@ -242,6 +243,22 @@ func ServerSetup(termMon *termmon.TermMonitor, bindaddrString string, ptServerIn
log.Errorf("meeklite transport missing Front argument: %s", args)
return
}
+ //case "replicant":
+ // if config, ok := args["config"]; ok {
+ // transport := replicant.New(config[0])
+ // listen = transport.Listen
+ // } else {
+ // log.Errorf("replicant transport missing config argument: %s", args)
+ // return
+ // }
+ case "Dust":
+ if idPath, ok := args["idPath"]; ok {
+ transport := Dust.NewDustServer(idPath[0])
+ listen = transport.Listen
+ } else {
+ log.Errorf("Dust transport missing idPath argument: %s", args)
+ return
+ }
case "shadow":
if password, ok := args["password"]; ok {
if cipher, ok2 := args["cipherName"]; ok2 {