Replaced netloc with hostname

This commit is contained in:
Kauppine 2021-04-10 12:57:12 +03:00
parent 121caadf6b
commit 7f1119e36d

View File

@ -514,7 +514,7 @@ class Connect(object):
if conf.proxy: if conf.proxy:
ws_proxy_uri = _urllib.parse.urlsplit(conf.proxy) ws_proxy_uri = _urllib.parse.urlsplit(conf.proxy)
ws_proxy_port = ws_proxy_uri.port 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 ws_proxy_scheme = ws_proxy_uri.scheme
if conf.proxyCred: if conf.proxyCred: