From 6c6a80efb40ec37e102402759d526cce3e741ab2 Mon Sep 17 00:00:00 2001 From: Max Lerebourg Date: Sat, 1 Oct 2022 19:43:21 +0200 Subject: [PATCH] :sparkles: fix --- bouncer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bouncer.go b/bouncer.go index 61464d3..c15d4ca 100644 --- a/bouncer.go +++ b/bouncer.go @@ -146,7 +146,7 @@ func (a *Bouncer) ServeHTTP(rw http.ResponseWriter, req *http.Request) { return } - if a.crowdsecMode == streamMode || a.crowdsecMode == liveMode { + if a.crowdsecMode == streamMode || a.crowdsecMode == aloneMode || a.crowdsecMode == liveMode { isBanned, err := getDecision(a.cache, remoteHost) if err == nil { if isBanned { @@ -159,7 +159,7 @@ func (a *Bouncer) ServeHTTP(rw http.ResponseWriter, req *http.Request) { } // Right here if we cannot join the stream we forbid the request to go on. - if a.crowdsecMode == streamMode { + if a.crowdsecMode == streamMode || a.crowdsecMode == aloneMode { if a.crowdsecStreamHealthy { a.next.ServeHTTP(rw, req) } else {