Update toriptables2.py

This commit is contained in:
Rupert Edwards 2021-02-25 12:02:06 -05:00 committed by GitHub
parent dfa46f3950
commit 719808e7a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,7 @@ DNSPort %s
while retries < 12 and not my_public_ip: while retries < 12 and not my_public_ip:
retries += 1 retries += 1
try: try:
my_public_ip = load(urlopen('https://ipinfo.io/json'))['ip'] my_public_ip = load(urlopen('https://api.ipify.org?format=json'))['ip']
except URLError: except URLError:
sleep(5) sleep(5)
print(" [\033[93m?\033[0m] Still waiting for IP address...") print(" [\033[93m?\033[0m] Still waiting for IP address...")