remove: eliminar GeoIP completamente, no era necesario
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
d66fe95514
commit
1d152b6de0
@@ -35,15 +35,6 @@ func LoadBuiltInMiddlewares(app *config.AppConfig) {
|
||||
|
||||
|
||||
|
||||
func Location(c *fiber.Ctx) (string, error) {
|
||||
if Http.GeoIP == nil {
|
||||
return "127.0.0.1", nil
|
||||
}
|
||||
ip := IP(c)
|
||||
_, err := Http.GeoIP.GetLocation(ip)
|
||||
return "127.0.0.1", err
|
||||
}
|
||||
|
||||
var fetchIpFromString = regexp.MustCompile(`(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})`)
|
||||
var possibleHeaderes = []string{
|
||||
"X-Original-Forwarded-For",
|
||||
|
||||
Reference in New Issue
Block a user