summaryrefslogtreecommitdiff
path: root/tests/e2e/check_ip
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-08-28 23:21:09 -0400
committerKali Kaneko <kali@leap.se>2017-08-30 16:18:53 -0400
commited9c33b9cdb1b2b61e5b485a21916a353356b67c (patch)
tree0d0cc02d9e85ba63563bc9f026edd10ddf23c100 /tests/e2e/check_ip
parent04d24156a8aa203b2201d1f26f45e4a48994a27b (diff)
[tests] use another geoip api to avoid json decode problems
Diffstat (limited to 'tests/e2e/check_ip')
-rwxr-xr-xtests/e2e/check_ip6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/e2e/check_ip b/tests/e2e/check_ip
index 662ab2f0..f9059063 100755
--- a/tests/e2e/check_ip
+++ b/tests/e2e/check_ip
@@ -6,13 +6,13 @@ import sys
DEMO_ISPS = ('Riseup Networks',)
-url = 'https://wtfismyip.com/json'
+url = 'https://ipapi.co/json'
with urllib.request.urlopen(url) as _url:
data = json.loads(_url.read().decode())
-isp = data['YourFuckingISP']
-ip = data['YourFuckingIPAddress']
+isp = data['org']
+ip = data['ip']
print('ISP >> %s' % isp)
print('IP >> %s' % ip)