From 193501ea553c17d853c9d7eb2d47ce8e54073571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= <31075951+laozhoubuluo@users.noreply.github.com> Date: Fri, 16 Feb 2024 14:53:59 +0800 Subject: [PATCH] fix bug --- util/ip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/ip.py b/util/ip.py index 5548cae1..53a34470 100644 --- a/util/ip.py +++ b/util/ip.py @@ -66,7 +66,8 @@ def _open(url, reg, sock): res = urlopen( Request(url, headers={'User-Agent': 'curl/7.63.0-ddns'}), timeout=60 ).read().decode('utf8', 'ignore') - print("response: %s", res) + debug("response: %s", res) + return compile(reg).search(res).group() except Exception as e: error(e)