Skip to content

Commit

Permalink
fix(tor): handle aiohttp-socks API changes (twintproject#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmeyerov authored and darvell committed Nov 16, 2020
1 parent 6f385de commit e9e87f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions twint/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit e9e87f4

Please sign in to comment.