diff options
author | atanarjuat <atanarjuat@example.com> | 2022-05-29 18:31:44 +0200 |
---|---|---|
committer | atanarjuat <atanarjuat@example.com> | 2022-05-29 18:31:44 +0200 |
commit | 0d647390a206a4ed4e513e419869055408df9822 (patch) | |
tree | d038ad783512bf716c819d38db8e64860414b452 /client | |
parent | e5067a84ee12230dbfa02778df7d49c74dc39dea (diff) |
do not return if error on accept
Diffstat (limited to 'client')
-rw-r--r-- | client/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/main.go b/client/main.go index 5cdfa4f..e9af09b 100644 --- a/client/main.go +++ b/client/main.go @@ -60,15 +60,15 @@ func main() { } } - addr := net.JoinHostPort(socksHost, socksPort) + socksAddr := net.JoinHostPort(socksHost, socksPort) server := &socks5.Server{ - Addr: addr, + Addr: socksAddr, BindIP: "127.0.0.1", Dial: dialer.Dial, } - fmt.Printf("[+] Starting socks5 proxy at %s\n", addr) + fmt.Printf("[+] Starting socks5 proxy at %s\n", socksAddr) if err := server.ListenAndServe(); err != nil { panic(err) } |