|
|
@ -243,8 +243,10 @@ def set_panel_username(username=None): |
|
|
|
|
|
|
|
|
|
|
|
def getServerIp(): |
|
|
|
def getServerIp(): |
|
|
|
version = sys.argv[2] |
|
|
|
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( |
|
|
|
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]) |
|
|
|
print(ip[0]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|