From 7f1119e36dc0a9000bd4aa421c58371f36cfd591 Mon Sep 17 00:00:00 2001 From: Kauppine <24810630+kauppine@users.noreply.github.com> Date: Sat, 10 Apr 2021 12:57:12 +0300 Subject: [PATCH] Replaced netloc with hostname --- lib/request/connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index db756831c..78a79141b 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -514,7 +514,7 @@ class Connect(object): if conf.proxy: ws_proxy_uri = _urllib.parse.urlsplit(conf.proxy) ws_proxy_port = ws_proxy_uri.port - ws_proxy_host = ws_proxy_uri.netloc.split(":")[0] + ws_proxy_host = ws_proxy_uri.hostname ws_proxy_scheme = ws_proxy_uri.scheme if conf.proxyCred: