Add initial readme, update com on bouncer

This commit is contained in:
MathieuHa
2022-09-28 21:04:58 +02:00
parent 60b789ba9d
commit 1098e5230e
2 changed files with 75 additions and 0 deletions
+1
View File
@@ -140,6 +140,7 @@ func New(ctx context.Context, next http.Handler, config *Config, name string) (h
return bouncer, nil
}
// TODO the serve HTTP should be split as it's too long
func (a *Bouncer) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
if !a.enabled {
log.Printf("Crowdsec Bouncer not enabled")