From 8c6a3d6b40c5f6d05caf3c3d8e2217d092adc149 Mon Sep 17 00:00:00 2001 From: char46 Date: Thu, 18 Apr 2024 04:02:33 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9UA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/ip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/ip.py b/util/ip.py index b71a21ea..51afddd6 100644 --- a/util/ip.py +++ b/util/ip.py @@ -50,7 +50,7 @@ def _open(url, reg): try: debug("open: %s", url) res = urlopen( - Request(url, headers={'User-Agent': 'curl/7.63.0-ddns'}), timeout=60 + Request(url, headers={'User-Agent': 'Mozilla/5.0 ddns'}), timeout=60 ).read().decode('utf8', 'ignore') debug("response: %s", res) return compile(reg).search(res).group()