Changed api version
This commit is contained in:
parent
a730ba7254
commit
f09fc865e5
1 changed files with 1 additions and 1 deletions
|
|
@ -19,6 +19,6 @@ class FingerprintView(viewsets.ModelViewSet):
|
||||||
|
|
||||||
def IPView(request):
|
def IPView(request):
|
||||||
ip = get_client_ip(request)
|
ip = get_client_ip(request)
|
||||||
with urllib.request.urlopen("http://ip-api.com/json/" + ip[0]) as url:
|
with urllib.request.urlopen("https://pro.ip-api.com/json/" + ip[0] + "?key=98U6i1Sr4HluY00") as url:
|
||||||
data = json.loads(url.read().decode())
|
data = json.loads(url.read().decode())
|
||||||
return JsonResponse(data)
|
return JsonResponse(data)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue