This commit is contained in:
yumoqing 2022-03-25 21:30:10 +08:00
parent 1cafb4067c
commit 41817c3b1a

View File

@ -40,7 +40,7 @@ class AcrossNat(object):
return x['NewExternalIPAddress'] return x['NewExternalIPAddress']
try: try:
return get('https://api.ipify.org').text return get('https://api.ipify.org').text
except:/Users/ymq/pydev/github/appPublic/appPublic except:
return get('https://ipapi.co/ip/').text return get('https://ipapi.co/ip/').text
def upnp_check_external_port(self, eport, protocol='TCP'): def upnp_check_external_port(self, eport, protocol='TCP'):