mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
Ignore IPv4 localhost even if written as IPv6 address
This commit is contained in:
parent
2bc6f05744
commit
18eda1d3a8
@ -148,12 +148,14 @@ Servent::startListening( QHostAddress ha, bool upnp, int port )
|
||||
continue; // IPv4 localhost
|
||||
if ( addr.toString() == "::1" )
|
||||
continue; // IPv6 localhost
|
||||
if ( addr.toString() == "::7F00:1" )
|
||||
continue; // IPv4 localhost as IPv6 address
|
||||
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Listening to " << addr.toString();
|
||||
m_externalAddresses.append( addr );
|
||||
}
|
||||
|
||||
}
|
||||
else if ( ( ha.toString() != "127.0.0.1" ) && ( ha.toString() != "::1" ) )
|
||||
else if ( ( ha.toString() != "127.0.0.1" ) && ( ha.toString() != "::1" ) && ( ha.toString() == "::7F00:1" ) )
|
||||
{
|
||||
// We listen only to one specific Address, only announce this.
|
||||
m_externalAddresses.append( ha );
|
||||
|
Loading…
x
Reference in New Issue
Block a user