fixed bug
This commit is contained in:
parent
345bd0fc47
commit
2c432e5422
2
main.js
2
main.js
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user