corrected invalid variable call & added log file debug information
This commit is contained in:
parent
26f5110fea
commit
197ae9213c
1 changed files with 2 additions and 1 deletions
|
@ -120,7 +120,8 @@ 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(address.toString(),Qt::CaseInsensitive))
|
||||
if (trustedSources.contains(socket->peerAddress().toString(),Qt::CaseInsensitive))
|
||||
qDebug() << "Allowing user from trusted source: " << socket->peerAddress().toString();
|
||||
return true;
|
||||
|
||||
int maxUsers = servatrice->getMaxUsersPerAddress();
|
||||
|
|
Loading…
Reference in a new issue