summaryrefslogtreecommitdiff
path: root/modes/pt_socks5
diff options
context:
space:
mode:
authorBluesaxorcist <joshua@operatorfoundation.org>2019-08-30 13:38:01 -0500
committerBluesaxorcist <joshua@operatorfoundation.org>2019-08-30 13:38:01 -0500
commit6eb4abf90d2be86fa86668b321a217a5f6022366 (patch)
tree17e2ad27105a0cfd8d09bb5aab587ff83d339caf /modes/pt_socks5
parentf468b19d78014e2cf5cc1d5f4bc2b4de5561c557 (diff)
Added meeklite to the dispatcher modes
Diffstat (limited to 'modes/pt_socks5')
-rw-r--r--modes/pt_socks5/pt_socks5.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/modes/pt_socks5/pt_socks5.go b/modes/pt_socks5/pt_socks5.go
index 7b958de..240f3c0 100644
--- a/modes/pt_socks5/pt_socks5.go
+++ b/modes/pt_socks5/pt_socks5.go
@@ -31,6 +31,7 @@ package pt_socks5
import (
"github.com/OperatorFoundation/shapeshifter-dispatcher/common/pt_extras"
+ "github.com/OperatorFoundation/shapeshifter-transports/transports/meeklite"
"github.com/OperatorFoundation/shapeshifter-transports/transports/shadow"
"io"
"net"
@@ -190,6 +191,19 @@ func ServerSetup(termMon *termmon.TermMonitor, bindaddrString string, ptServerIn
log.Errorf("obfs4 transport missing cert argument: %s", args)
return
}
+ case "meeklite":
+ Url, ok := args.Get("Url")
+ if !ok {
+ return false, nil
+ }
+
+ Front, ok2 := args.Get("Front")
+ if !ok2 {
+ return false, nil
+ }
+ transport := meeklite.NewMeekTransportWithFront(Url, Front)
+ listen = transport.Listen
+
case "shadow":
password, ok := args.Get("password")
if !ok {
@@ -209,6 +223,7 @@ func ServerSetup(termMon *termmon.TermMonitor, bindaddrString string, ptServerIn
}
+
f := listen
transportLn := f(bindaddr.Addr.String())