mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
- Increased number of failed authentication attempts to 5 in Web UI
This commit is contained in:
parent
957d2c0d1a
commit
1b0d86220f
@ -131,7 +131,7 @@ QString HttpConnection::translateDocument(QString data) {
|
||||
void HttpConnection::respond() {
|
||||
//qDebug("Respond called");
|
||||
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.setMessage(tr("Your IP address has been banned after too many failed authentication attempts."));
|
||||
write();
|
||||
|
Loading…
Reference in New Issue
Block a user