Allow localhost
This commit is contained in:
parent
0e2fec0d1b
commit
ecb9e4ad86
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user