fixed bug

This commit is contained in:
git 2025-06-16 16:23:18 +01:00
parent 345bd0fc47
commit 2c432e5422

View File

@ -174,7 +174,7 @@ function replyLocallyWithRemoteDevicesData(name,type,query) {
class: 'IN',
ttl: 120,
// Convert plain string to buffer; required by mdns-server
data: r.TXT.map(entry=>Buffer.from(entry.data,'utf8'))
data: db.remote.services[name].TXT.map(entry=>Buffer.from(entry.data,'utf8'))
});
}
// 5. Many mDNS tools (like Avahi or Bonjour) send type: 'ANY' queries to discover all records for a name.