From dfa46f39508b09d91d08c813bf2613cbace6b8c0 Mon Sep 17 00:00:00 2001 From: Rupert Edwards Date: Thu, 25 Feb 2021 11:59:07 -0500 Subject: [PATCH] [Changed] IP Endpoint --- toriptables2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toriptables2.py b/toriptables2.py index 312e398..5d24c74 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://api.ipify.org?format=json'))['ip'] + my_public_ip = load(urlopen('https://ipinfo.io/json'))['ip'] except URLError: sleep(5) print(" [\033[93m?\033[0m] Still waiting for IP address...")