1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 09:04:33 +02:00

Do not try link-local addresses.

This commit is contained in:
Uwe L. Korn
2013-04-05 22:10:53 +02:00
committed by Michael Zanetti
parent 85c7b16fa1
commit 6172d50710

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