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])