mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
Sent non-IP hostname as a last hostname too (these are the user-supplied ones)
This commit is contained in:
parent
374e05c5ca
commit
03cdb474c1
@ -142,9 +142,9 @@ void TomahawkXmppMessageFactory::serialize(Payload *extension, QXmlStreamWriter
|
||||
if ( info.isVisible() )
|
||||
{
|
||||
QHostAddress ha = QHostAddress( info.host() );
|
||||
if ( Servent::isValidExternalIP( ha ) && ha.protocol() == QAbstractSocket::IPv4Protocol )
|
||||
if ( ( Servent::isValidExternalIP( ha ) && ha.protocol() == QAbstractSocket::IPv4Protocol ) || ( ha.protocol() == QAbstractSocket::UnknownNetworkLayerProtocol ) )
|
||||
{
|
||||
// For comapability reasons, this shall be put as the last candidate
|
||||
// For comapability reasons, this shall be put as the last candidate (this is the IP/host that would have been sent in previous versions)
|
||||
lastInfo = QSharedPointer<SipInfo>( new SipInfo( info ) );
|
||||
sipInfos.removeOne( info );
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user