Commit cddc1a39 authored by lmeyerov's avatar lmeyerov Committed by GitHub

fix(tor): handle aiohttp-socks API changes (#914)

See https://github.com/twintproject/twint/issues/913
parent 87b5b663
......@@ -51,7 +51,6 @@ def get_connector(config):
if config.Proxy_host:
if config.Proxy_host.lower() == "tor":
_connector = ProxyConnector(
socks_ver=ProxyType.SOCKS5,
host='127.0.0.1',
port=9050,
rdns=True)
......@@ -69,7 +68,7 @@ def get_connector(config):
print("Error: Proxy types allowed are: http, socks5 and socks4. No https.")
sys.exit(1)
_connector = ProxyConnector(
socks_ver=_type,
proxy_type=_type,
host=config.Proxy_host,
port=config.Proxy_port,
rdns=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment