mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-30 10:33:54 -07:00
removed qdebug line for >= maxuser (no need to fill log)
This commit is contained in:
parent
1195e4c77b
commit
ff8e25bb7e
1 changed files with 0 additions and 2 deletions
|
|
@ -123,8 +123,6 @@ bool ServerSocketInterface::initSession()
|
||||||
//allow unlimited number of connections from the trusted sources
|
//allow unlimited number of connections from the trusted sources
|
||||||
QString trustedSources = settingsCache->value("server/trusted_sources","127.0.0.1,::1").toString();
|
QString trustedSources = settingsCache->value("server/trusted_sources","127.0.0.1,::1").toString();
|
||||||
if (trustedSources.contains(socket->peerAddress().toString(),Qt::CaseInsensitive))
|
if (trustedSources.contains(socket->peerAddress().toString(),Qt::CaseInsensitive))
|
||||||
if (servatrice->getUsersWithAddress(socket->peerAddress()) >= maxUsers)
|
|
||||||
qDebug() << "Allowing user from trusted source: " << socket->peerAddress().toString();
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if ((maxUsers > 0) && (servatrice->getUsersWithAddress(socket->peerAddress()) >= maxUsers)) {
|
if ((maxUsers > 0) && (servatrice->getUsersWithAddress(socket->peerAddress()) >= maxUsers)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue