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()
// Allow localhost
// if ip == "127.0.0.1" {
// next()
// return
// }
if ip == "127.0.0.1" {
next()
return
}
statsObj, found := ipToStats.Get(ip)