mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 14:46:33 +02:00
Do not try link-local addresses.
This commit is contained in:
@@ -150,6 +150,8 @@ Servent::startListening( QHostAddress ha, bool upnp, int port )
|
|||||||
continue; // IPv6 localhost
|
continue; // IPv6 localhost
|
||||||
if ( addr.toString() == "::7F00:1" )
|
if ( addr.toString() == "::7F00:1" )
|
||||||
continue; // IPv4 localhost as IPv6 address
|
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();
|
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Listening to " << addr.toString();
|
||||||
m_externalAddresses.append( addr );
|
m_externalAddresses.append( addr );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user