Fix duplicate conditional check
This commit is contained in:
parent
393ff7119f
commit
e64ce9bd1a
|
@ -42,7 +42,7 @@ def urllib_read(query_url):
|
|||
if query_url.startswith('http://ipv'):
|
||||
if query_url.startswith('http://ipv4.icanhazip.com'):
|
||||
return '127.0.0.1'
|
||||
elif query_url.startswith('http://ipv4.icanhazip.com'):
|
||||
elif query_url.startswith('http://ipv6.icanhazip.com'):
|
||||
return '2001:4801:7818:6:abc5:ba2c:ff10:275f'
|
||||
elif query_url.startswith('http://geoip.nekudo.com/api/'):
|
||||
return '{"city":"Meppen","country":{"name":"Germany", "code":"DE"},"location":{"accuracy_radius":100,"latitude":52.6833,"longitude":7.3167,"time_zone":"Europe\/Berlin"},"ip":"82.145.55.16"}'
|
||||
|
|
Loading…
Reference in New Issue