From b9ff2dc46ddda052b4b3689c60571523ab887383 Mon Sep 17 00:00:00 2001 From: Andreas Date: Tue, 19 Mar 2013 22:24:56 +0100 Subject: [PATCH] Debug output interface and ip address for windows mDNS discovery. --- src/networkremote/tinysvcmdns.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/networkremote/tinysvcmdns.cpp b/src/networkremote/tinysvcmdns.cpp index 0cba22000..ab496f3cb 100644 --- a/src/networkremote/tinysvcmdns.cpp +++ b/src/networkremote/tinysvcmdns.cpp @@ -37,6 +37,8 @@ TinySVCMDNS::TinySVCMDNS() { { uint32_t ipv4 = 0; QString ipv6; + + qLog(Debug) << "Interface" << network_interface.humanReadableName(); // Now check all network addresses for this device QList network_address_entries = network_interface.addressEntries(); @@ -45,8 +47,10 @@ TinySVCMDNS::TinySVCMDNS() { QHostAddress host_address = network_address_entry.ip(); if (host_address.protocol() == QAbstractSocket::IPv4Protocol) { ipv4 = qToBigEndian(host_address.toIPv4Address()); + qLog(Debug) << " ipv4:" << host_address.toString(); } else if (host_address.protocol() == QAbstractSocket::IPv6Protocol) { ipv6 = host_address.toString(); + qLog(Debug) << " ipv6:" << host_address.toString(); } }