Skip to content

Commit 290a40b

Browse files
committed
netloc parse
1 parent 9c72abf commit 290a40b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pproxy/proto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def netloc_split(loc, default_port):
88
if ipv6:
99
host_name, port = ipv6.groups()
1010
else:
11-
host_name, port = loc.partition(':')
11+
host_name, _, port = loc.partition(':')
1212
return host_name, int(port) if port else default_port
1313

1414
async def socks_address_stream(reader, n):

0 commit comments

Comments
 (0)