meshctrl deviceinfo error on unescaped nodeid
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
May 23, 2024 at 20:59 UTC
7cf14a2b69f9f970959838a68628f415adae0384
1 file changed
+1
-1
meshctrl.js
+1
-1
@@ -2755,7 +2755,7 @@ function displayDeviceInfo(sysinfo, lastconnect, network, nodes) {
2755
}
2756
}
2757
}
2758
- if (node == null) {
2758
+ if ((sysinfo == null && lastconnect == null && network == null) || (node == null)) {
2759
console.log("Invalid device id");
2760
process.exit(); return;
2761
}