Allow localhost

This commit is contained in:
Eduard Urbach 2017-07-20 12:40:26 +02:00
parent 0e2fec0d1b
commit ecb9e4ad86

View File

@ -26,10 +26,10 @@ func Firewall() aero.Middleware {
ip := ctx.RealIP() ip := ctx.RealIP()
// Allow localhost // Allow localhost
// if ip == "127.0.0.1" { if ip == "127.0.0.1" {
// next() next()
// return return
// } }
statsObj, found := ipToStats.Get(ip) statsObj, found := ipToStats.Get(ip)