fixed bug / typo
This commit is contained in:
parent
0784f2ce49
commit
c4045a3d30
4
main.js
4
main.js
@ -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') });
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user