From f500efa19d68bea1e51d3902984904d27673e2ca Mon Sep 17 00:00:00 2001 From: git Date: Mon, 16 Jun 2025 17:00:11 +0100 Subject: [PATCH] fixed bug: simplified logic --- main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.js b/main.js index a008158..33b6fba 100644 --- a/main.js +++ b/main.js @@ -230,9 +230,7 @@ async function fetchRemoteDevicesData() { db.remote.A[Name] = Data; } else if (Type === 'PTR') { - if (!db.remote.PTR[Name]) db.remote.PTR[Name] = []; - if (!db.remote.PTR[Name].includes(Data)) - db.remote.PTR[Name].push((["[","{"].includes(Data.substr(0,1))?JSON.parse(Data):Data)); + db.remote.PTR[Name] = (["[","{"].includes(Data.substr(0,1))?JSON.parse(Data):Data); } else if (['TXT', 'SRV'].includes(Type)) { if (!db.remote.services[Name]) db.remote.services[Name] = { TXT: null, SRV: null };