Skip to content

Commit 4bb6e83

Browse files
authored
Fix query of the GET /decisions endpoint (#236)
- banned=true query parameter doesn't exist based on LAPI dcoumentation, remove it
1 parent 78869ec commit 4bb6e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bouncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ func handleNoStreamCache(bouncer *Bouncer, remoteIP string) (string, error) {
428428
Scheme: bouncer.crowdsecScheme,
429429
Host: bouncer.crowdsecHost,
430430
Path: bouncer.crowdsecPath + crowdsecLapiRoute,
431-
RawQuery: fmt.Sprintf("ip=%v&banned=true", remoteIP),
431+
RawQuery: fmt.Sprintf("ip=%v", remoteIP),
432432
}
433433
body, err := crowdsecQuery(bouncer, routeURL.String(), false)
434434
if err != nil {

0 commit comments

Comments
 (0)