U 优化站点检测异常信息输出

pull/418/head
vapao 2021-12-06 16:12:47 +08:00
parent f084a4dcce
commit 121c605332
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ regex = re.compile(r'Failed to establish a new connection: (.*)\'\)+')
def site_check(url, limit):
try:
res = requests.get(url, timeout=10)
res = requests.get(url, timeout=30)
if limit:
duration = int(res.elapsed.total_seconds() * 1000)
if duration > int(limit):