Commit ff8e25bb authored by woogerboy21's avatar woogerboy21
Browse files

removed qdebug line for >= maxuser (no need to fill log)

parent 1195e4c7
......@@ -123,8 +123,6 @@ bool ServerSocketInterface::initSession()
//allow unlimited number of connections from the trusted sources
QString trustedSources = settingsCache->value("server/trusted_sources","127.0.0.1,::1").toString();
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;
if ((maxUsers > 0) && (servatrice->getUsersWithAddress(socket->peerAddress()) >= maxUsers)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment