From 01ddc2f124193b2f93627054655816ac7beb6ac1 Mon Sep 17 00:00:00 2001 From: rafael Date: Tue, 19 Aug 2025 21:09:48 -0300 Subject: [PATCH 1/2] Add AgeBlockedGeo --- bskyweb/cmd/bskyweb/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bskyweb/cmd/bskyweb/server.go b/bskyweb/cmd/bskyweb/server.go index 4208eea2d8..958701ed2a 100644 --- a/bskyweb/cmd/bskyweb/server.go +++ b/bskyweb/cmd/bskyweb/server.go @@ -606,6 +606,7 @@ type IPCCRequest struct { type IPCCResponse struct { CC string `json:"countryCode"` AgeRestrictedGeo bool `json:"isAgeRestrictedGeo,omitempty"` + AgeBlockedGeo bool `json:"isAgeBlockedGeo,omitempty"` } // IP address data is powered by IPinfo From 05376729cf6d14a0e2e7bb5f9b91af4ec097feff Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 21 Aug 2025 16:37:31 -0500 Subject: [PATCH 2/2] Add MaxMind usage text --- bskyweb/cmd/bskyweb/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bskyweb/cmd/bskyweb/server.go b/bskyweb/cmd/bskyweb/server.go index 958701ed2a..89cd112cd7 100644 --- a/bskyweb/cmd/bskyweb/server.go +++ b/bskyweb/cmd/bskyweb/server.go @@ -609,8 +609,7 @@ type IPCCResponse struct { AgeBlockedGeo bool `json:"isAgeBlockedGeo,omitempty"` } -// IP address data is powered by IPinfo -// https://ipinfo.io +// This product includes GeoLite2 Data created by MaxMind, available from https://www.maxmind.com. func (srv *Server) WebIpCC(c echo.Context) error { realIP := c.RealIP() addr, err := netip.ParseAddr(realIP)