mirror of
https://github.com/znc/znc.git
synced 2026-07-06 01:41:12 +02:00
fail2ban: remember timeout & attempts (#534)
This commit is contained in:
@@ -74,6 +74,7 @@ public:
|
||||
PutModule("Usage: Timeout (<minutes>)");
|
||||
} else {
|
||||
m_Cache.SetTTL(uTimeout * 60 * 1000);
|
||||
SetArgs(CString(m_Cache.GetTTL() / 60 / 1000) + " " + CString(m_uiAllowedFailed));
|
||||
PutModule("Timeout: " + CString(uTimeout) + " min");
|
||||
}
|
||||
} else {
|
||||
@@ -90,6 +91,7 @@ public:
|
||||
PutModule("Usage: Attempts (<count>)");
|
||||
} else {
|
||||
m_uiAllowedFailed = uiAttempts;
|
||||
SetArgs(CString(m_Cache.GetTTL() / 60 / 1000) + " " + CString(m_uiAllowedFailed));
|
||||
PutModule("Attempts: " + CString(uiAttempts));
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user