From 73592c4f72632c5261dbba2d15b1f85c6d00088e Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Fri, 15 Feb 2019 20:11:57 +0500 Subject: [PATCH] change ip address resovers since the old one doesnt work anymore --- mtprotoproxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 039f9af..54f0800 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -1108,10 +1108,10 @@ def get_ip_from_url(url): except Exception: return None - IPV4_URL1 = "http://ipv4.myexternalip.com/raw" + IPV4_URL1 = "http://v4.ident.me/)" IPV4_URL2 = "http://ipv4.icanhazip.com/" - IPV6_URL1 = "http://ipv6.myexternalip.com/raw" + IPV6_URL1 = "http://v6.ident.me/" IPV6_URL2 = "http://ipv6.icanhazip.com/" my_ip_info["ipv4"] = get_ip_from_url(IPV4_URL1) or get_ip_from_url(IPV4_URL2)