cleanup fix variables mixup

This commit is contained in:
2025-11-27 22:04:30 +01:00
parent b0c9a10da8
commit 11f3d01a55
+1 -1
View File
@@ -158,7 +158,7 @@ async function main() {
// }
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]}`);