1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

* For Qt4 on Windows, we rather have ipv4-only than ipv6-only.

This commit is contained in:
Christian Muehlhaeuser
2014-08-12 20:19:41 +02:00
parent 9e4ef5e380
commit 02bbdc5d4e

View File

@@ -140,11 +140,7 @@ Servent::startListening( QHostAddress ha, bool upnp, int port, Tomahawk::Network
d->externalListenAll = false; d->externalListenAll = false;
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
if ( ha == QHostAddress::Any ) 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. // We are listening on all available addresses, so we should send a SipInfo for all of them.
foreach ( QHostAddress addr, QNetworkInterface::allAddresses() ) foreach ( QHostAddress addr, QNetworkInterface::allAddresses() )
@@ -201,7 +197,7 @@ Servent::startListening( QHostAddress ha, bool upnp, int port, Tomahawk::Network
case Tomahawk::Network::ExternalAddress::Upnp: case Tomahawk::Network::ExternalAddress::Upnp:
if ( upnp ) if ( upnp )
{ {
// upnp could be turned of on the cli with --noupnp // upnp could be turned off on the cli with --noupnp
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "External address mode set to upnp..."; tLog( LOGVERBOSE ) << Q_FUNC_INFO << "External address mode set to upnp...";
d_func()->portfwd = QPointer< PortFwdThread >( new PortFwdThread( d_func()->port ) ); d_func()->portfwd = QPointer< PortFwdThread >( new PortFwdThread( d_func()->port ) );
Q_ASSERT( d_func()->portfwd ); Q_ASSERT( d_func()->portfwd );