1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 05:37:29 +02:00

Correctly ignore IPv4-as-IPv6 localhost

This commit is contained in:
Uwe L. Korn
2013-04-05 22:12:29 +02:00
parent 8a6cd62c59
commit 9b7730cd26

View File

@@ -157,7 +157,7 @@ Servent::startListening( QHostAddress ha, bool upnp, int port )
} }
} }
else if ( ( ha.toString() != "127.0.0.1" ) && ( ha.toString() != "::1" ) && ( ha.toString() == "::7F00: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 );