1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

Update network.py

This commit is contained in:
Evhorizon 2022-11-06 20:35:30 +01:00 committed by GitHub
parent 2dc5c0e1d6
commit 1517724615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ class Network:
): ):
continue continue
return False return False
response = await client.get("https://check.torproject.org/api/ip", timeout=10) response = await client.get("https://check.torproject.org/api/ip", timeout=60)
if not response.json()["IsTor"]: if not response.json()["IsTor"]:
result = False result = False
Network._TOR_CHECK_RESULT[proxies] = result Network._TOR_CHECK_RESULT[proxies] = result