Update tools.py

This commit is contained in:
Mr Chen
2024-04-25 19:19:57 +08:00
parent 7c3cde83df
commit a48429f9f8
+3 -1
View File
@@ -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])