mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-03 20:57:52 +02:00
Sent non-IP hostname as a last hostname too (these are the user-supplied ones)
This commit is contained in:
@@ -142,9 +142,9 @@ void TomahawkXmppMessageFactory::serialize(Payload *extension, QXmlStreamWriter
|
|||||||
if ( info.isVisible() )
|
if ( info.isVisible() )
|
||||||
{
|
{
|
||||||
QHostAddress ha = QHostAddress( info.host() );
|
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 ) );
|
lastInfo = QSharedPointer<SipInfo>( new SipInfo( info ) );
|
||||||
sipInfos.removeOne( info );
|
sipInfos.removeOne( info );
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user