Skip to content

Commit 28e8ea0

Browse files
committed
type inconsistency
1 parent b436e21 commit 28e8ea0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ci/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.enableStatsPage: "true"
1919
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.ipForwardedHeader: "X-Forwarded-For"
2020
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.logLevel: "DEBUG"
21-
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.protectParameters: ${PROTECT_PARAMETERS:-false}
21+
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.protectParameters: "${PROTECT_PARAMETERS:-false}"
2222
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.goodBots: ""
2323
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.enableGooglebotIPCheck: "true"
2424
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.protectRoutes: "/"
@@ -49,7 +49,7 @@ services:
4949
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.enableStatsPage: "true"
5050
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.ipForwardedHeader: "X-Forwarded-For"
5151
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.logLevel: "DEBUG"
52-
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.protectParameters: ${PROTECT_PARAMETERS:-false}
52+
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.protectParameters: "${PROTECT_PARAMETERS:-false}"
5353
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.goodBots: ""
5454
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.enableGooglebotIPCheck: "true"
5555
traefik.http.middlewares.captcha-protect.plugin.captcha-protect.protectRoutes: "/"

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,7 @@ func (bc *CaptchaProtect) isGoodBot(req *http.Request, clientIP string) bool {
941941
return false
942942
}
943943
}
944+
944945
bot, ok := bc.botCache.Get(clientIP)
945946
if ok {
946947
return bot.(bool)

0 commit comments

Comments
 (0)