Merge pull request #2 from bluesky-social/rafael/geo

Add AgeBlockedGeo
This commit is contained in:
Eric Bailey
2025-08-21 16:38:00 -05:00
committed by GitHub
+2 -2
View File
@@ -606,10 +606,10 @@ type IPCCRequest struct {
type IPCCResponse struct { type IPCCResponse struct {
CC string `json:"countryCode"` CC string `json:"countryCode"`
AgeRestrictedGeo bool `json:"isAgeRestrictedGeo,omitempty"` AgeRestrictedGeo bool `json:"isAgeRestrictedGeo,omitempty"`
AgeBlockedGeo bool `json:"isAgeBlockedGeo,omitempty"`
} }
// IP address data is powered by IPinfo // This product includes GeoLite2 Data created by MaxMind, available from https://www.maxmind.com.
// https://ipinfo.io
func (srv *Server) WebIpCC(c echo.Context) error { func (srv *Server) WebIpCC(c echo.Context) error {
realIP := c.RealIP() realIP := c.RealIP()
addr, err := netip.ParseAddr(realIP) addr, err := netip.ParseAddr(realIP)