From a48429f9f8698fd7fab2aaaa16e86cbf38c15339 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 25 Apr 2024 19:19:57 +0800 Subject: [PATCH] Update tools.py --- tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools.py b/tools.py index 7e52be73a..2c80f26e0 100755 --- a/tools.py +++ b/tools.py @@ -243,8 +243,10 @@ def set_panel_username(username=None): def getServerIp(): version = sys.argv[2] + # ip = mw.execShell( + # "curl --insecure -{} -sS --connect-timeout 5 -m 60 https://v6r.ipip.net/?format=text".format(version)) ip = mw.execShell( - "curl --insecure -{} -sS --connect-timeout 5 -m 60 https://v6r.ipip.net/?format=text".format(version)) + "curl --insecure -{} -sS --connect-timeout 5 -m 60 https://ip.cachecha.com/?format=text".format(version)) print(ip[0])