fail2ban: remember timeout & attempts (#534)

This commit is contained in:
J-P Nurmi
2015-08-12 01:57:39 +02:00
parent a3f748448e
commit 832ab84c05
+2
View File
@@ -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 {