diff --git a/src/accounts/zeroconf/TomahawkZeroconf.h b/src/accounts/zeroconf/TomahawkZeroconf.h index c1d362fb4..afc7b36c5 100644 --- a/src/accounts/zeroconf/TomahawkZeroconf.h +++ b/src/accounts/zeroconf/TomahawkZeroconf.h @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -131,6 +132,10 @@ private slots: m_sock.readDatagram( datagram.data(), datagram.size(), &sender, &senderPort ); qDebug() << "DATAGRAM RCVD" << QString::fromLatin1( datagram ) << sender; + // Ignore our own requests + if ( QNetworkInterface::allAddresses().contains( sender ) ) + return; + // only process msgs originating on the LAN: if ( datagram.startsWith( "TOMAHAWKADVERT:" ) && Servent::isIPWhitelisted( sender ) )