From d4ec1541038e9a42282edc13ac3203c8815f8e26 Mon Sep 17 00:00:00 2001 From: mkckr0 <26296627+mkckr0@users.noreply.github.com> Date: Mon, 17 Jul 2023 13:12:16 +0800 Subject: [PATCH] change "0" to "0.0.0.0" to fix error when bind udp addr --- socks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socks.py b/socks.py index 83b1435..002ed87 100644 --- a/socks.py +++ b/socks.py @@ -343,7 +343,7 @@ def bind(self, *pos, **kw): # some relays drop packets if a port of zero is specified. # Avoid specifying host address in case of NAT though. _, port = self.getsockname() - dst = ("0", port) + dst = ("0.0.0.0", port) self._proxyconn = _orig_socket() proxy = self._proxy_addr()