corrected invalid variable call & added log file debug information

This commit is contained in:
woogerboy21 2014-11-18 17:20:45 -05:00
parent 26f5110fea
commit 197ae9213c

View file

@ -120,7 +120,8 @@ 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(address.toString(),Qt::CaseInsensitive)) if (trustedSources.contains(socket->peerAddress().toString(),Qt::CaseInsensitive))
qDebug() << "Allowing user from trusted source: " << socket->peerAddress().toString();
return true; return true;
int maxUsers = servatrice->getMaxUsersPerAddress(); int maxUsers = servatrice->getMaxUsersPerAddress();