Remove geographic blocking middleware - will implement later

This commit is contained in:
Patrick Britton 2026-02-01 12:38:04 -06:00
parent e436ab40bb
commit 3b91a48c06

View file

@ -89,11 +89,6 @@ func main() {
MaxAge: 12 * time.Hour, MaxAge: 12 * time.Hour,
})) }))
// Initialize simple geographic blocking middleware
geoBlockMiddleware := middleware.NewSimpleGeoBlockMiddleware()
r.Use(geoBlockMiddleware.Middleware())
log.Info().Msg("Simple geographic blocking enabled - blocking known problematic regions and hosting providers")
r.NoRoute(func(c *gin.Context) { r.NoRoute(func(c *gin.Context) {
log.Debug().Msgf("No route found for %s %s", c.Request.Method, c.Request.URL.Path) log.Debug().Msgf("No route found for %s %s", c.Request.Method, c.Request.URL.Path)
c.JSON(404, gin.H{"error": "route not found", "path": c.Request.URL.Path, "method": c.Request.Method}) c.JSON(404, gin.H{"error": "route not found", "path": c.Request.URL.Path, "method": c.Request.Method})