mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 00:24:12 +02:00
Ensure that Servent still runs on all IPs with Qt 5.0
This commit is contained in:
@@ -542,7 +542,11 @@ TomahawkApp::initServent()
|
||||
|
||||
bool upnp = !arguments().contains( "--noupnp" );
|
||||
int port = TomahawkSettings::instance()->externalPort();
|
||||
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
||||
if ( !Servent::instance()->startListening( QHostAddress( QHostAddress::Any ), upnp, port ) )
|
||||
#else
|
||||
if ( !Servent::instance()->startListening( QHostAddress( QHostAddress::AnyIPv6 ), upnp, port ) )
|
||||
#endif
|
||||
{
|
||||
tLog() << "Failed to start listening with servent";
|
||||
exit( 1 );
|
||||
|
Reference in New Issue
Block a user