fixed bug / typo

This commit is contained in:
git 2025-06-15 20:11:35 +01:00
parent 0784f2ce49
commit c4045a3d30

View File

@ -193,8 +193,8 @@ function replyLocallyWithRemoteDevicesData(name,type,query) {
if (db.remote.A && db.remote.A[name]) {
answers.push({ name, type: 'A', class: 'IN', ttl: 120, data: db.remote.A[name] });
}
if (db.remote[name]) {
const r = db.remote[name];
if (db.remote.services[name]) {
const r = db.remote.services[name];
if (r.SRV) answers.push({ name, type: 'SRV', class: 'IN', ttl: 120, data: r.SRV });
if (r.TXT) answers.push({ name, type: 'TXT', class: 'IN', ttl: 120, data: Buffer.from(r.TXT, 'utf8') });
}