Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Talts <sean.talts@gmail.com>2020-04-20 20:19:03 +0300
committerSean Talts <sean.talts@gmail.com>2020-04-20 22:05:04 +0300
commit37d24f6bf2d66d3bfc123416c27136bc4d2e22a4 (patch)
tree1bc53f6ee31f5aec4b71ce3fe20296dc330ba895 /src/murmur/Server.cpp
parent35c1d01b216f1d7e7fb9bd0cd8ecce09681f02c3 (diff)
src/murmur: Add autobanSuccessfulConnections flag.
The idea here is that sometimes you really do have a lot of folks connecting from a single IP, and if those connections are successful you don't want to ban any of them. However, in cases where the server needs to guard against malicious users attempting a DDOS by reconnecting their valid user account over and over, we need to be able to configure the server to still ban those successful attempts.
Diffstat (limited to 'src/murmur/Server.cpp')
-rw-r--r--src/murmur/Server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/murmur/Server.cpp b/src/murmur/Server.cpp
index bce2a2172..9a1f76099 100644
--- a/src/murmur/Server.cpp
+++ b/src/murmur/Server.cpp
@@ -1362,6 +1362,8 @@ void Server::newClient() {
sock->setProtocol(QSsl::TlsV1_0);
#endif
sock->startServerEncryption();
+
+ meta->successfulConnectionFrom(adr);
}
}