From 11f3d01a55f36feb53b5f66b2ce5e13e7d2a5fe6 Mon Sep 17 00:00:00 2001 From: Zjamnik Date: Thu, 27 Nov 2025 22:04:30 +0100 Subject: [PATCH] cleanup fix variables mixup --- upnpMapper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upnpMapper.js b/upnpMapper.js index 467985a..c00db7e 100644 --- a/upnpMapper.js +++ b/upnpMapper.js @@ -156,9 +156,9 @@ async function main() { // run(`upnpc -d ${found[2]} ${found[1]}`); // } // } - + for (const portMap of upnpPortList.split('\n')) { - if (portMap.includes("AMP") && !instancesJSON.includes(portMap.split("'")[1])) { + if (portMap.includes("AMP") && !instancesPorts.includes(portMap.split("'")[1])) { let found = portMap.match(/ *\d+ +(\w+) +(\d+).*/); console.log(`Remove ${found[2]} ${found[1]}`); run(`upnpc -d ${found[2]} ${found[1]}`);