Try using socks5h at scheme. (#2022)

This commit is contained in:
Jonathan Zernik 2022-03-26 00:17:40 -07:00 committed by GitHub
parent 20ca359af5
commit 8c84a8eb1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ class PeerClient:
proxy_host is not None and \
proxy_port is not None:
self.proxies = {
"http": f'socks5://{proxy_host}:{proxy_port}',
"http": f'socks5h://{proxy_host}:{proxy_port}',
}
logger.info("Using base url: {}".format(self.base_url))
logger.info("Using proxies: {}".format(self.proxies))