Skip to content

Commit 10735c2

Browse files
committed
fix ipv6 issue
1 parent 0aa4e4c commit 10735c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pproxy/__doc__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = "pproxy"
2-
__version__ = "2.3.5"
2+
__version__ = "2.3.6"
33
__license__ = "MIT"
44
__description__ = "Proxy server that can tunnel among remote servers by regex rules."
55
__keywords__ = "proxy socks http shadowsocks shadowsocksr ssr redirect pf tunnel cipher ssl udp"

pproxy/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def compile(cls, uri, relay=None):
474474
cipher.plugins.append(plugin)
475475
match = cls.compile_rule(url.query) if url.query else None
476476
if loc:
477-
host_name, _, port = loc.partition(':')
477+
host_name, _, port = loc.rpartition(':')
478478
port = int(port) if port else (22 if 'ssh' in rawprotos else 8080)
479479
else:
480480
host_name = port = None

0 commit comments

Comments
 (0)