1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01:00

Do not try link-local addresses.

This commit is contained in:
Uwe L. Korn 2013-04-05 22:10:53 +02:00
parent 18eda1d3a8
commit 8a6cd62c59

View File

@ -150,6 +150,8 @@ Servent::startListening( QHostAddress ha, bool upnp, int port )
continue; // IPv6 localhost
if ( addr.toString() == "::7F00:1" )
continue; // IPv4 localhost as IPv6 address
if ( addr.isInSubnet( QHostAddress::parseSubnet( "fe80::/10" ) ) )
continue; // Skip link local addresses
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Listening to " << addr.toString();
m_externalAddresses.append( addr );
}