From bb2d98481f422305eeac708cf377b5d53b241aef Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Sat, 12 Mar 2022 15:08:07 +0000 Subject: [PATCH] Fixed connect.js --- scripts/connect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/connect.js b/scripts/connect.js index 978d19d..5fb6e9c 100644 --- a/scripts/connect.js +++ b/scripts/connect.js @@ -32,7 +32,7 @@ export function main(ns) { const newDevices = ns.scan(current).filter(d => !blacklist.has(d)); if(newDevices.length == 0) return []; if(newDevices.find(d => d == device)) return [...path, device]; - return newDevices.map(d => find(device, d, [...path, d], all)).find(p => p && p.length); + return newDevices.map(d => find(device, d, [...path, d], blacklist)).find(p => p && p.length); } // Run