Skip to content

Commit 116b1f1

Browse files
committed
Fixed proxy to use provided URL
1 parent f0876cd commit 116b1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tibiapy/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def _initialize_session(self, proxy_url=None):
4747
'User-Agent': "Tibia.py/%s (+https://github.com/Galarzaa90/tibia.py" % tibiapy.__version__,
4848
'Accept-Encoding': "deflate, gzip"
4949
}
50-
connector = aiohttp_socks.SocksConnector.from_url('socks5://127.0.0.1:7744') if proxy_url else None
50+
connector = aiohttp_socks.SocksConnector.from_url(proxy_url) if proxy_url else None
5151
self.session = aiohttp.ClientSession(loop=self.loop, headers=headers,
5252
connector=connector) # type: aiohttp.ClientSession
5353

0 commit comments

Comments
 (0)