diff --git a/modules/fail2ban.cpp b/modules/fail2ban.cpp index adb18729..fd3a78ba 100644 --- a/modules/fail2ban.cpp +++ b/modules/fail2ban.cpp @@ -216,6 +216,10 @@ class CFailToBanMod : public CModule { Add(sRemoteIP, 1); } + void OnClientLogin() override { + Remove(GetClient()->GetRemoteIP()); + } + EModRet OnLoginAttempt(std::shared_ptr Auth) override { // e.g. webadmin ends up here const CString& sRemoteIP = Auth->GetRemoteIP();