cleanup fix variables mixup
This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ async function main() {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
for (const portMap of upnpPortList.split('\n')) {
|
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+).*/);
|
let found = portMap.match(/ *\d+ +(\w+) +(\d+).*/);
|
||||||
console.log(`Remove ${found[2]} ${found[1]}`);
|
console.log(`Remove ${found[2]} ${found[1]}`);
|
||||||
run(`upnpc -d ${found[2]} ${found[1]}`);
|
run(`upnpc -d ${found[2]} ${found[1]}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user