@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user