1
0
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:
Uwe L. Korn
2013-06-14 20:02:17 +02:00
parent 32665bd3bb
commit 2280f7858e

View File

@@ -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 );