mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-29 20:22:30 +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
|
continue; // IPv4 localhost
|
||||||
if ( addr.toString() == "::1" )
|
if ( addr.toString() == "::1" )
|
||||||
continue; // IPv6 localhost
|
continue; // IPv6 localhost
|
||||||
|
if ( addr.toString() == "::7F00:1" )
|
||||||
|
continue; // IPv4 localhost as IPv6 address
|
||||||
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
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.
|
// We listen only to one specific Address, only announce this.
|
||||||
m_externalAddresses.append( ha );
|
m_externalAddresses.append( ha );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user