1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-26 12:53:41 +01:00

Propagate the Any-ip ifdef

This commit is contained in:
Uwe L. Korn 2013-08-30 23:16:57 +02:00
parent 36cd7b3008
commit 8606fbd9b4

View File

@ -148,7 +148,11 @@ Servent::startListening( QHostAddress ha, bool upnp, int port, Tomahawk::Network
}
}
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
if ( ha == QHostAddress::Any )
#else
if ( ha == QHostAddress::AnyIPv6 )
#endif
{
// We are listening on all available addresses, so we should send a SipInfo for all of them.
foreach ( QHostAddress addr, QNetworkInterface::allAddresses() )