1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 13:01:53 +02:00

Port whitelist acl check over from Servent to Connection

This commit is contained in:
Jeff Mitchell 2012-06-22 15:07:07 -04:00
parent 5d9685ba5c
commit 607042b865

View File

@ -199,6 +199,12 @@ Connection::checkACL()
return;
}
if ( Servent::isIPWhitelisted( m_peerIpAddress ) )
{
QTimer::singleShot( 0, this, SLOT( doSetup() ) );
return;
}
QString nodeid = property( "nodeid" ).toString();
QString bareName = name().contains( '/' ) ? name().left( name().indexOf( "/" ) ) : name();
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Checking ACL for" << name();