diff options
author | Bluesaxorcist <joshua@operatorfoundation.org> | 2019-08-30 13:38:01 -0500 |
---|---|---|
committer | Bluesaxorcist <joshua@operatorfoundation.org> | 2019-08-30 13:38:01 -0500 |
commit | 6eb4abf90d2be86fa86668b321a217a5f6022366 (patch) | |
tree | 17e2ad27105a0cfd8d09bb5aab587ff83d339caf /modes/transparent_udp | |
parent | f468b19d78014e2cf5cc1d5f4bc2b4de5561c557 (diff) |
Added meeklite to the dispatcher modes
Diffstat (limited to 'modes/transparent_udp')
-rw-r--r-- | modes/transparent_udp/transparent_udp.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modes/transparent_udp/transparent_udp.go b/modes/transparent_udp/transparent_udp.go index f32397f..eeb8f35 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/meeklite" "github.com/OperatorFoundation/shapeshifter-transports/transports/shadow" "io" golog "log" @@ -240,6 +241,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 { |