From e5bb5faacb9cde3e932fb31ac17ef548dadd05c3 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 20 Sep 2018 17:13:24 +0200 Subject: [PATCH] Updated GeoIP from freegeoip to use ipstack API instead --- src/utils/util_load.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/util_load.cpp b/src/utils/util_load.cpp index b3688cbd..5a4d98e4 100644 --- a/src/utils/util_load.cpp +++ b/src/utils/util_load.cpp @@ -630,7 +630,7 @@ void handleServer(void *hostEntryPointer){ HTTP::Downloader DL; - if (DL.get(HTTP::URL("http://freegeoip.net/json/"+url.host)) && DL.isOk()){ + if (DL.get(HTTP::URL("http://api.ipstack.com/"+url.host+"?access_key=05eb21db3983dec4cd6d22131ec0a40d&format=1")) && DL.isOk()){ JSON::Value &gDet = entry->details->geoDetails; INFO_MSG("Location: %s", DL.data().c_str()); gDet = JSON::fromString(DL.data());