Skip to content

Commit

Permalink
change ip address resovers since the old one doesnt work anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbers committed Feb 15, 2019
1 parent b0cb48f commit 73592c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mtprotoproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 73592c4

Please sign in to comment.