1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

- Increased number of failed authentication attempts to 5 in Web UI

This commit is contained in:
Christophe Dumez 2010-01-17 09:09:57 +00:00
parent 957d2c0d1a
commit 1b0d86220f

View File

@ -131,7 +131,7 @@ QString HttpConnection::translateDocument(QString data) {
void HttpConnection::respond() { void HttpConnection::respond() {
//qDebug("Respond called"); //qDebug("Respond called");
int nb_fail = parent->client_failed_attempts.value(socket->peerAddress().toString(), 0); int nb_fail = parent->client_failed_attempts.value(socket->peerAddress().toString(), 0);
if(nb_fail > 2) { if(nb_fail > 4) {
generator.setStatusLine(403, "Forbidden"); generator.setStatusLine(403, "Forbidden");
generator.setMessage(tr("Your IP address has been banned after too many failed authentication attempts.")); generator.setMessage(tr("Your IP address has been banned after too many failed authentication attempts."));
write(); write();