Changed get IP location to TOR

This commit is contained in:
Rupert Edwards 2018-12-30 07:14:33 -05:00 committed by GitHub
parent e8b29e8046
commit 8bbe6c71bb
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: while retries < 12 and not my_public_ip:
retries += 1 retries += 1
try: try:
my_public_ip = load(urlopen('http://ident.me/.json'))['address'] my_public_ip = load(urlopen('https://check.torproject.org/api/ip'))['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...")