summaryrefslogtreecommitdiff
path: root/modes
diff options
context:
space:
mode:
authorBluesaxorcist <joshua@operatorfoundation.org>2019-10-07 19:56:45 -0500
committerBluesaxorcist <joshua@operatorfoundation.org>2019-10-07 19:56:45 -0500
commiteb30e6097b1797817c88de9ade6766a8a0ee977c (patch)
tree87c5ec78491f6efc1c30aa31c13bdbda06f7695b /modes
parent3d244fa6d82cba8be63f6a4c84539c842b1a7f8e (diff)
commented out replicant on tcp side until code is fixed
Diffstat (limited to 'modes')
-rw-r--r--modes/transparent_tcp/transparent_tcp.go35
1 files changed, 17 insertions, 18 deletions
diff --git a/modes/transparent_tcp/transparent_tcp.go b/modes/transparent_tcp/transparent_tcp.go
index 51ec43b..8fc2f08 100644
--- a/modes/transparent_tcp/transparent_tcp.go
+++ b/modes/transparent_tcp/transparent_tcp.go
@@ -33,9 +33,7 @@ import (
options2 "github.com/OperatorFoundation/shapeshifter-dispatcher/common"
"github.com/OperatorFoundation/shapeshifter-dispatcher/common/pt_extras"
- "github.com/OperatorFoundation/shapeshifter-dispatcher/transports"
"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/obfs2"
"io"
@@ -167,22 +165,23 @@ func ServerSetup(termMon *termmon.TermMonitor, bindaddrString string, ptServerIn
case "obfs4":
transport := obfs4.NewObfs4Server(statedir)
listen = transport.Listen
- case "Replicant":
- shargs, aok := args["Replicant"]
- if !aok {
- return false, nil
- }
-
- configString, ok := shargs.Get("config")
- if !ok {
- return false, nil
- }
- config, err := transports.ParseReplicantConfig(configString)
- if err != nil {
- return false, nil
- }
- transport := replicant.New(config)
- listen = transport.Listen
+ //FIXME make replicant case work for server side
+ //case "Replicant":
+ // shargs, aok := args["Replicant"]
+ // if !aok {
+ // return false, nil
+ // }
+ //
+ // configString, ok := shargs.Get("config")
+ // if !ok {
+ // return false, nil
+ // }
+ // config, err := transports.ParseReplicantConfig(configString)
+ // if err != nil {
+ // return false, nil
+ // }
+ // transport := replicant.New(config)
+ // listen = transport.Listen
case "Dust":
shargs, aok := args["Dust"]
if !aok {