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

Include IP address in logging for offers

This commit is contained in:
Uwe L. Korn
2014-11-05 21:46:42 +01:00
parent 0168386e96
commit 6a2782a95b

View File

@@ -1131,11 +1131,11 @@ Servent::claimOffer( ControlConnection* cc, const QString &nodeid, const QString
if ( !d->noAuth && peer != QHostAddress::Any && !isIPWhitelisted( peer ) )
{
bool authed = false;
tDebug() << Q_FUNC_INFO << "Checking for ControlConnection with IP" << peer;
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Checking for ControlConnection with IP" << peer;
QMutexLocker locker( &d->controlconnectionsMutex );
foreach ( ControlConnection* cc, d->controlconnections )
{
tDebug() << Q_FUNC_INFO << "Probing:" << cc->name();
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Probing:" << cc->name() << cc->socket()->peerAddress();
// Always compare IPv6 addresses as IPv4 address are sometime simply IPv4 addresses, sometimes mapped IPv6 addresses
if ( cc->socket() && equalByIPv6Address( cc->socket()->peerAddress(), peer ) )
{