Skip to content

Commit

Permalink
[Fixed] Getting Public IP Address
Browse files Browse the repository at this point in the history
  • Loading branch information
ruped24 authored May 28, 2020
1 parent 44da4a2 commit d3f025c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toriptables2.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def restart_tor():
while retries < 12 and not my_public_ip:
retries += 1
try:
my_public_ip = load(urlopen('http://ipinfo.io/json'))['ip']
my_public_ip = load(urlopen('https://check.torproject.org/api/ip'))['IP']
except URLError:
sleep(5)
print(" [\033[93m?\033[0m] Still waiting for IP address...")
Expand Down

0 comments on commit d3f025c

Please sign in to comment.