pass proxy address instead of object
This commit is contained in:
parent
5c190ca8d1
commit
9c5297b316
@ -130,7 +130,7 @@ class UpstreamHandler():
|
|||||||
if isinstance(proxy_list, list):
|
if isinstance(proxy_list, list):
|
||||||
futures = []
|
futures = []
|
||||||
for current in proxy_list:
|
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)
|
futures.append(future)
|
||||||
for future in asyncio.as_completed(futures):
|
for future in asyncio.as_completed(futures):
|
||||||
success, current = await future
|
success, current = await future
|
||||||
|
Loading…
Reference in New Issue
Block a user