diff --git a/ripe/atlas/cousteau/stream.py b/ripe/atlas/cousteau/stream.py index dd6317e..6b673e8 100644 --- a/ripe/atlas/cousteau/stream.py +++ b/ripe/atlas/cousteau/stream.py @@ -123,11 +123,14 @@ def _get_proxy_options(self): return {} parsed = urlparse(proxy_url) - return { + res = { "proxy_type": parsed.scheme, "http_proxy_host": parsed.hostname, "http_proxy_port": parsed.port, } + if parsed.username is not None: + res.update({ "http_proxy_auth" : (parsed.username, parsed.password) }) + return res def connect(self) -> None: while self.ws is None: diff --git a/setup.py b/setup.py index 8251b67..eb09a10 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ install_requires = [ "python-dateutil", "requests>=2.7.0", - "websocket-client~=1.3.1", + "websocket-client~=1.6.2", "typing-extensions", ]