From 7ff76a94a4bf7b2f9ba945419728b70c72214b10 Mon Sep 17 00:00:00 2001 From: Christopher Luna Date: Mon, 28 Aug 2023 12:32:33 -0400 Subject: [PATCH] Update API endpoint for GeoIP web services MaxMind is beginning to enforce policies around its API endpoints. Endpoints should use the correct hostname for the product or service, and should always use HTTPS. [Release Note.](https://dev.maxmind.com/geoip/release-notes/2023#api-policies---temporary-enforcement-on-october-17-2023) --- bin/weather | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/weather b/bin/weather index a347341..f097f4a 100755 --- a/bin/weather +++ b/bin/weather @@ -18,7 +18,7 @@ def get_location(): """Return current location as latitude/longitude tuple.""" logger.debug("query MaxMind for location") r = requests.get( - "https://www.maxmind.com/geoip/v2.1/city/me", + "https://geoip.maxmind.com/geoip/v2.1/city/me", headers={"referer": "https://www.maxmind.com/en/locate-my-ip-address"}, timeout=10, )