[Fixed] Getting Public IP Address location

This commit is contained in:
Rupert Edwards 2020-05-28 16:49:43 -04:00 committed by GitHub
parent c3d1db164c
commit 44da4a2b6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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