remove: eliminar GeoIP completamente, no era necesario

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-06-20 10:25:05 -05:00
co-authored by Claude Sonnet 4.6
parent d66fe95514
commit 1d152b6de0
2 changed files with 0 additions and 15 deletions
-6
View File
@@ -11,7 +11,6 @@ import (
"github.com/joho/godotenv"
"github.com/oarkflow/log"
"github.com/sujit-baniya/flash"
"github.com/sujit-baniya/ip"
)
// Config is a application configuration structure
@@ -31,7 +30,6 @@ type AppConfig struct {
Token Token `yaml:"token"`
Profiler ProfilerConfig `yaml:"profiler"`
Flash *flash.Flash
GeoIP *ip.GeoIpDB
ConfigFile string
}
@@ -52,10 +50,6 @@ func (cfg *AppConfig) Setup() {
modelFile := filepath.Join(cfg.Server.AssetPath, "rbac_model.conf")
cfg.Auth.Setup(cfg.Database.DB, modelFile)
}
mmdbPath := filepath.Join(cfg.Server.AssetPath, "GeoLite2-City.mmdb")
if _, err := os.Stat(mmdbPath); err == nil {
cfg.GeoIP = ip.NewGeoIpDB(MakeDir(mmdbPath))
}
}
func (cfg *AppConfig) PrepareLog() {