geolocation tweak
This commit is contained in:
parent
e6c0bb740b
commit
0785ef954b
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ defmodule AprsmeWeb.Plugs.IPGeolocation do
|
||||||
defp valid_ip_for_geolocation?(_), do: false
|
defp valid_ip_for_geolocation?(_), do: false
|
||||||
|
|
||||||
defp fetch_ip_location(ip) do
|
defp fetch_ip_location(ip) do
|
||||||
url = "https://ip-api.com/json/#{ip}"
|
url = "http://ip-api.com/json/#{ip}"
|
||||||
Logger.info("IP geolocation: Making HTTP request to #{url}")
|
Logger.info("IP geolocation: Making HTTP request to #{url}")
|
||||||
|
|
||||||
# Configure very short timeout to prevent blocking page load
|
# Configure very short timeout to prevent blocking page load
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue