Private GIT

Skip to content
Snippets Groups Projects
Commit 8555e1f4 authored by Florent MONTHEL's avatar Florent MONTHEL Committed by GitHub
Browse files

Replace AP IP as old one down

replace with https://api.ipify.org
parent 7aefafe8
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ def get_ip():
#Get external IP
try:
# Could be any service that just gives us a simple raw ASCII IP address (not HTML etc)
r = requests.get('http://ipv4.myexternalip.com/raw', timeout=3)
r = requests.get('https://api.ipify.org', timeout=3)
except Exception:
print('Failed to retrieve external IP.')
sys.exit(2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment