diff --git a/pproxy/server.py b/pproxy/server.py index df28ebc..0f552b0 100644 --- a/pproxy/server.py +++ b/pproxy/server.py @@ -482,7 +482,7 @@ def compile(cls, uri, relay=None): cipher.plugins.append(plugin) match = cls.compile_rule(url.query) if url.query else None if loc: - host_name, _, port = loc.rpartition(':') + host_name, _, port = loc.partition(':') port = int(port) if port else (22 if 'ssh' in rawprotos else 8080) else: host_name = port = None