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)