mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 07:07:05 +02:00
Port whitelist acl check over from Servent to Connection
This commit is contained in:
@@ -199,6 +199,12 @@ Connection::checkACL()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( Servent::isIPWhitelisted( m_peerIpAddress ) )
|
||||||
|
{
|
||||||
|
QTimer::singleShot( 0, this, SLOT( doSetup() ) );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QString nodeid = property( "nodeid" ).toString();
|
QString nodeid = property( "nodeid" ).toString();
|
||||||
QString bareName = name().contains( '/' ) ? name().left( name().indexOf( "/" ) ) : name();
|
QString bareName = name().contains( '/' ) ? name().left( name().indexOf( "/" ) ) : name();
|
||||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Checking ACL for" << name();
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Checking ACL for" << name();
|
||||||
|
Reference in New Issue
Block a user