pass proxy address instead of object

This commit is contained in:
Roy Olav Purser 2021-06-04 10:57:34 +02:00
parent 5c190ca8d1
commit 9c5297b316
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -130,7 +130,7 @@ class UpstreamHandler():
if isinstance(proxy_list, list):
futures = []
for current in proxy_list:
future = asyncio.create_task(self.test_socks(current))
future = asyncio.create_task(self.test_socks(current.proxy))
futures.append(future)
for future in asyncio.as_completed(futures):
success, current = await future