diff options
Diffstat (limited to 'src/common/socks5.py')
-rw-r--r-- | src/common/socks5.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/socks5.py b/src/common/socks5.py index 9cdc33166..55cdc4369 100644 --- a/src/common/socks5.py +++ b/src/common/socks5.py @@ -609,7 +609,7 @@ class Socks5: struct.unpack('!BBBB', buff[:4]) if host_type == 0x01: host_arr = struct.unpack('!iiii', buff[4:8]) - host, = reduce(lambda e1, e2: str(e1) + "." + str(e2), host_arr) + host, = '.'.join(str(s) for s in host_arr) host_len = len(host) elif host_type == 0x03: host_len, = struct.unpack('!B' , buff[4]) |