mirror of
https://github.com/taixingyiji/openit.git
synced 2026-10-20 09:27:41 +00:00
Update check.py
This commit is contained in:
1 parent
5d8bcd898a
commit
b64d3e3b1d
1 file changed
+1
-1
@@ -13,7 +13,7 @@ def check(alive, proxy, apiurl,sema,timeout, testurl):
|
||||
response = json.loads(r.text)
|
||||
try:
|
||||
if response['delay'] > 0:
|
||||
r = requests.get(url=apiurl + '/proxies/' + str(proxy['name']) + '/delay?url=https://cachefly.cachefly.net/1mb.test&timeout=' + str(timeout), timeout=15)
|
||||
r = requests.get(url=apiurl + '/proxies/' + str(proxy['name']) + '/delay?url=https://cachefly.cachefly.net/10mb.test&timeout=' + str(timeout), timeout=15)
|
||||
response = json.loads(r.text)
|
||||
try:
|
||||
if response['delay'] > 0:
|
||||
|
||||
Reference in new issue
Block a user