summaryrefslogtreecommitdiff
path: root/modes/stun_udp/stun_udp.go
diff options
context:
space:
mode:
Diffstat (limited to 'modes/stun_udp/stun_udp.go')
-rw-r--r--modes/stun_udp/stun_udp.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/modes/stun_udp/stun_udp.go b/modes/stun_udp/stun_udp.go
index f9d458f..511d7c9 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/meeklite"
"github.com/OperatorFoundation/shapeshifter-transports/transports/shadow"
"io"
golog "log"
@@ -228,6 +229,19 @@ func ServerSetup(termMon *termmon.TermMonitor, bindaddrString string, ptServerIn
log.Errorf("obfs4 transport missing cert argument: %s", args)
return
}
+ case "meeklite":
+ if Url, ok := args["Url"]; ok {
+ if Front, ok2 := args["Front"]; ok2 {
+ transport := meeklite.NewMeekTransportWithFront(Url[0], Front[0])
+ listen = transport.Listen
+ } else {
+ log.Errorf("meeklite transport missing Url argument: %s", args)
+ return
+ }
+ } else {
+ log.Errorf("meeklite transport missing Front argument: %s", args)
+ return
+ }
case "shadow":
if password, ok := args["password"]; ok {
if cipher, ok2 := args["cipherName"]; ok2 {