Skip to content

Commit

Permalink
Fixed proxy to use provided URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Galarzaa90 committed Sep 16, 2019
1 parent f0876cd commit 116b1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tibiapy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def _initialize_session(self, proxy_url=None):
'User-Agent': "Tibia.py/%s (+https://github.com/Galarzaa90/tibia.py" % tibiapy.__version__,
'Accept-Encoding': "deflate, gzip"
}
connector = aiohttp_socks.SocksConnector.from_url('socks5://127.0.0.1:7744') if proxy_url else None
connector = aiohttp_socks.SocksConnector.from_url(proxy_url) if proxy_url else None
self.session = aiohttp.ClientSession(loop=self.loop, headers=headers,
connector=connector) # type: aiohttp.ClientSession

Expand Down

0 comments on commit 116b1f1

Please sign in to comment.