From ec6b2def78b9607141abc5d09890beaa36903feb Mon Sep 17 00:00:00 2001 From: Rupert Edwards Date: Fri, 19 Feb 2021 05:00:20 -0500 Subject: [PATCH] [Fixed] Changed IP Endpoint --- toriptables2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toriptables2.py b/toriptables2.py index 1602fdc..312e398 100755 --- a/toriptables2.py +++ b/toriptables2.py @@ -103,7 +103,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('https://api.ipify.org?format=json'))['ip'] except URLError: sleep(5) print(" [\033[93m?\033[0m] Still waiting for IP address...")