feat(dnssd): add macAddress field

This commit is contained in:
uncor3
2026-02-01 01:41:14 -08:00
parent 8fd2c6c76e
commit b407070829
2 changed files with 3 additions and 0 deletions
@@ -174,6 +174,7 @@ void DNSSD_API DnssdService::resolveCallback(
pending.hostname = QString::fromUtf8(hosttarget);
pending.port = ntohs(port);
pending.interfaceIndex = interfaceIndex;
pending.macAddress = serviceName.split('@').first();
// Parse TXT records
if (txtLen > 0 && txtRecord) {
@@ -288,6 +289,7 @@ void DNSSD_API DnssdService::addrInfoCallback(
device.hostname = pending.hostname;
device.address = QString::fromUtf8(ip);
device.port = pending.port > 0 ? pending.port : 22; // Default to SSH port
device.macAddress = pending.macAddress;
qDebug() << "Resolved IP for Apple device:" << device.name << "at"
<< device.address << ":" << device.port;
+1
View File
@@ -88,6 +88,7 @@ private:
uint16_t port;
uint32_t interfaceIndex;
QMap<QString, QString> txt;
QString macAddress;
};
QMap<QString, PendingDevice> m_pendingDevices;
};