There was an error while loading. Please reload this page.
1 parent 0aa4e4c commit 10735c2Copy full SHA for 10735c2
2 files changed
pproxy/__doc__.py
@@ -1,5 +1,5 @@
1
__title__ = "pproxy"
2
-__version__ = "2.3.5"
+__version__ = "2.3.6"
3
__license__ = "MIT"
4
__description__ = "Proxy server that can tunnel among remote servers by regex rules."
5
__keywords__ = "proxy socks http shadowsocks shadowsocksr ssr redirect pf tunnel cipher ssl udp"
pproxy/server.py
@@ -474,7 +474,7 @@ def compile(cls, uri, relay=None):
474
cipher.plugins.append(plugin)
475
match = cls.compile_rule(url.query) if url.query else None
476
if loc:
477
- host_name, _, port = loc.partition(':')
+ host_name, _, port = loc.rpartition(':')
478
port = int(port) if port else (22 if 'ssh' in rawprotos else 8080)
479
else:
480
host_name = port = None
0 commit comments