From 86971126f37d01f3e3fcea00887a552a86c1a382 Mon Sep 17 00:00:00 2001 From: "Dr. Brandon Wiley" Date: Mon, 15 Jan 2018 13:34:34 -0600 Subject: Allow for the client proxy listening address to be specified on the command line --- modes/stun_udp/stun_udp.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'modes/stun_udp') diff --git a/modes/stun_udp/stun_udp.go b/modes/stun_udp/stun_udp.go index 81ef6d8..535e9b9 100644 --- a/modes/stun_udp/stun_udp.go +++ b/modes/stun_udp/stun_udp.go @@ -51,10 +51,6 @@ import ( "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs4" ) -const ( - socksAddr = "127.0.0.1:1234" -) - var stateDir string type ConnState struct { @@ -68,7 +64,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) -- cgit v1.2.3