Update tools.py

pull/555/head
Mr Chen 1 year ago
parent 7c3cde83df
commit a48429f9f8
  1. 4
      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])

Loading…
Cancel
Save