1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01:00

Use peerName instead of peerAddress

* If connecting to a non-IP host, peerAddress is an empty string,
  peerName contains the DNS name
This commit is contained in:
Uwe L. Korn 2013-06-05 18:56:59 +02:00
parent 6748d37a8b
commit 725486a4e4

View File

@ -723,7 +723,7 @@ Servent::createParallelConnection( Connection* orig_conn, Connection* new_conn,
info.setVisible( true );
info.setKey( key );
info.setNodeId( orig_conn->id() );
info.setHost( orig_conn->socket()->peerAddress().toString() );
info.setHost( orig_conn->socket()->peerName() );
info.setPort( orig_conn->peerPort() );
Q_ASSERT( info.isValid() );
initiateConnection( info, new_conn );