mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-05 16:42:26 +02:00
* For Qt4 on Windows, we rather have ipv4-only than ipv6-only.
This commit is contained in:
parent
9e4ef5e380
commit
02bbdc5d4e
@ -140,11 +140,7 @@ Servent::startListening( QHostAddress ha, bool upnp, int port, Tomahawk::Network
|
||||
|
||||
d->externalListenAll = false;
|
||||
|
||||
#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() )
|
||||
@ -201,7 +197,7 @@ Servent::startListening( QHostAddress ha, bool upnp, int port, Tomahawk::Network
|
||||
case Tomahawk::Network::ExternalAddress::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...";
|
||||
d_func()->portfwd = QPointer< PortFwdThread >( new PortFwdThread( d_func()->port ) );
|
||||
Q_ASSERT( d_func()->portfwd );
|
||||
|
Loading…
x
Reference in New Issue
Block a user