From ecb9e4ad86919e12100d714b2859468cf36a8c74 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 20 Jul 2017 12:40:26 +0200 Subject: [PATCH] Allow localhost --- middleware/Firewall.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/middleware/Firewall.go b/middleware/Firewall.go index a92d9004..1929ec8a 100644 --- a/middleware/Firewall.go +++ b/middleware/Firewall.go @@ -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)