Skip to content

Commit

Permalink
meshctrl deviceinfo error on unescaped nodeid
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed May 23, 2024
1 parent 7e7361d commit 7cf14a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2755,7 +2755,7 @@ function displayDeviceInfo(sysinfo, lastconnect, network, nodes) {
}
}
}
if (node == null) {
if ((sysinfo == null && lastconnect == null && network == null) || (node == null)) {
console.log("Invalid device id");
process.exit(); return;
}
Expand Down

0 comments on commit 7cf14a2

Please sign in to comment.