Skip to content
Permalink
Browse files

Show more information when a banned user connects

  • Loading branch information...
Natenom authored and mkrautz committed Dec 1, 2015
1 parent 925587a commit b5825472f8aed3bd7e86e399b3c960c570e6c45b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/murmur/Server.cpp
@@ -1165,7 +1165,7 @@ void Server::newClient() {

foreach(const Ban &ban, qlBans) {
if (ban.haAddress.match(ha, ban.iMask)) {
log(QString("Ignoring connection: %1 (Server ban)").arg(addressToString(sock->peerAddress(), sock->peerPort())));
log(QString("Ignoring connection: %1, Reason: %2, Username: %3, Hash: %4 (Server ban)").arg(addressToString(sock->peerAddress(), sock->peerPort()), ban.qsReason, ban.qsUsername, ban.qsHash));
sock->disconnectFromHost();
sock->deleteLater();
return;
@@ -1273,7 +1273,7 @@ void Server::encrypted() {

foreach(const Ban &ban, qlBans) {
if (ban.qsHash == uSource->qsHash) {
log(uSource, QString("Certificate hash is banned."));
log(uSource, QString("Certificate hash is banned: %1, Username: %2, Reason: %3.").arg(ban.qsHash, ban.qsUsername, ban.qsReason));
uSource->disconnectSocket();
}
}

0 comments on commit b582547

Please sign in to comment.
You can’t perform that action at this time.