From c4045a3d307f321561d14e7f670d482be47ff3d8 Mon Sep 17 00:00:00 2001 From: git Date: Sun, 15 Jun 2025 20:11:35 +0100 Subject: [PATCH] fixed bug / typo --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 9d36f99..dae1494 100644 --- a/main.js +++ b/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') }); }