This commit is contained in:
Max Lerebourg
2022-09-28 13:46:08 +02:00
parent 17ff76b108
commit c15dcedab8
+4
View File
@@ -149,7 +149,11 @@ func (a *Bouncer) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
} }
if a.crowdsecMode == "stream" { if a.crowdsecMode == "stream" {
if a.crowdsecStreamHealthy {
a.next.ServeHTTP(rw, req) a.next.ServeHTTP(rw, req)
} else {
rw.WriteHeader(http.StatusForbidden)
}
return return
} }