summaryrefslogtreecommitdiff
path: root/modes/transparent_udp/transparent_udp.go
diff options
context:
space:
mode:
authorDr. Brandon Wiley <brandon@operatorfoundation.org>2018-01-15 13:34:34 -0600
committerDr. Brandon Wiley <brandon@operatorfoundation.org>2018-01-15 13:34:34 -0600
commit86971126f37d01f3e3fcea00887a552a86c1a382 (patch)
treef0ccde3869816952312e7fede803a41896303ffb /modes/transparent_udp/transparent_udp.go
parentd93413e8a79df10fa1d6713756595e265403d1c6 (diff)
Allow for the client proxy listening address to be specified on the command line2.0.1
Diffstat (limited to 'modes/transparent_udp/transparent_udp.go')
-rw-r--r--modes/transparent_udp/transparent_udp.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/modes/transparent_udp/transparent_udp.go b/modes/transparent_udp/transparent_udp.go
index 63591a7..4be013a 100644
--- a/modes/transparent_udp/transparent_udp.go
+++ b/modes/transparent_udp/transparent_udp.go
@@ -49,10 +49,6 @@ import (
"github.com/OperatorFoundation/shapeshifter-transports/transports/obfs4"
)
-const (
- socksAddr = "127.0.0.1:1234"
-)
-
var stateDir string
type ConnState struct {
@@ -66,7 +62,7 @@ func NewConnState() ConnState {
type ConnTracker map[string]ConnState
-func ClientSetup(termMon *termmon.TermMonitor, target string, ptClientProxy *url.URL, names []string, options string) bool {
+func ClientSetup(termMon *termmon.TermMonitor, socksAddr string, target string, ptClientProxy *url.URL, names []string, options string) bool {
// Launch each of the client listeners.
for _, name := range names {
udpAddr, err := net.ResolveUDPAddr("udp", socksAddr)