Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not increment failure counter for successful calls #184

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jhalag
Copy link

@jhalag jhalag commented Feb 20, 2025

fail2ban/handler was incrementing fail count for all HTTP calls, not just failed calls. Add new function IsNotBanned() to allow checking of IP ban status without incrementing fail count.

Update tests to address time.Now() not matching between expected and actual. This error was present prior to this fork.

Addresses #136

@tomMoulard
Copy link
Owner

Hello @jhalag,

Thanks for your interest in this traefik plugin !

I think you pushed just a bit too much code on this PR, it makes your PR is really hare to read 😅

@jhalag
Copy link
Author

jhalag commented Feb 21, 2025 via email

@jhalag
Copy link
Author

jhalag commented Feb 21, 2025

Hello @tomMoulard - commit has been reduced in diff-lines. I hope it is easier to read now.

@jhalag
Copy link
Author

jhalag commented Feb 25, 2025

make ci appears to complete successfully when I run it locally now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants