From ac16a75795366d8a8c559e81e2dafba160060fac Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Fri, 11 Aug 2023 15:21:39 +0200 Subject: [PATCH] moar --- core/backends/lan/mdns_wrapper.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/backends/lan/mdns_wrapper.cpp b/core/backends/lan/mdns_wrapper.cpp index 80ae51869..e52a78fa9 100644 --- a/core/backends/lan/mdns_wrapper.cpp +++ b/core/backends/lan/mdns_wrapper.cpp @@ -107,6 +107,7 @@ static int query_callback(int sock, const struct sockaddr* from, size_t addrlen, if (discoveredService->address == QHostAddress::Null) { discoveredService->address = QHostAddress(from); // In case we don't receive a A record, use from as address } + qWarning() << "Got a PTR for addres" << discoveredService->address; } break; case MDNS_RECORDTYPE_SRV: { static char nameBuffer[256]; @@ -270,7 +271,7 @@ static QHostAddress findBestAddressMatchV4(QVector hostAddresses, return hostAddresses[0]; } - // qDebug() << "I have more than one IP address:" << hostAddresses << "- Finding best match for source IP:" << otherIp; + qWarning() << "I have more than one IP address:" << hostAddresses << "- Finding best match for source IP:" << otherIp; QHostAddress matchingIp = hostAddresses[0]; int matchingBits = -1; @@ -286,7 +287,7 @@ static QHostAddress findBestAddressMatchV4(QVector hostAddresses, } } - // qDebug() << "Found match:" << matchingIp; + qWarning() << "Found match:" << matchingIp; return matchingIp; }