summaryrefslogtreecommitdiff
path: root/modes
diff options
context:
space:
mode:
authorBluesaxorcist <joshua@operatorfoundation.org>2019-09-16 18:58:22 -0500
committerBluesaxorcist <joshua@operatorfoundation.org>2019-09-16 18:58:22 -0500
commite0f4ef87d6a6ef5518a40468c868164708788170 (patch)
treefb69815a22352cb4448286712df4293a5dd2a8d8 /modes
parent43d0e72c72600a1bc75518a8dfe31c279b4a9400 (diff)
fixed transports to use configs
Diffstat (limited to 'modes')
-rw-r--r--modes/transparent_tcp/transparent_tcp.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/modes/transparent_tcp/transparent_tcp.go b/modes/transparent_tcp/transparent_tcp.go
index 5535bd6..33534e7 100644
--- a/modes/transparent_tcp/transparent_tcp.go
+++ b/modes/transparent_tcp/transparent_tcp.go
@@ -33,6 +33,7 @@ import (
"fmt"
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"
@@ -174,11 +175,15 @@ func ServerSetup(termMon *termmon.TermMonitor, bindaddrString string, ptServerIn
return false, nil
}
- _, ok := shargs.Get("config")
+ configString, ok := shargs.Get("config")
if !ok {
return false, nil
}
- transport := replicant.New(replicant.Config{})
+ config, err := transports.ParseReplicantConfig(configString)
+ if err != nil {
+ return false, nil
+ }
+ transport := replicant.New(config)
listen = transport.Listen
case "Dust":
shargs, aok := args["Dust"]