From 54b9ad88ad4f3e1e241a54378457b88467809fec Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Wed, 19 May 2021 13:07:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BD=91=E7=BB=9C=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/utils.py b/common/utils.py index c42e723..ea3b6f1 100644 --- a/common/utils.py +++ b/common/utils.py @@ -495,7 +495,7 @@ def delete_file(*paths): @tenacity.retry(stop=tenacity.stop_after_attempt(3), wait=tenacity.wait_fixed(2)) def check_net(): - urls = ['http://ipinfo.io/json', 'http://ipconfig.io/json'] + urls = ['http://ip-api.com/json/'] url = random.choice(urls) header = {'User_Agent': 'curl'} timeout = settings.request_timeout_second