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:
parent
6748d37a8b
commit
725486a4e4
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user