From 7cf14a2b69f9f970959838a68628f415adae0384 Mon Sep 17 00:00:00 2001 From: si458 Date: Thu, 23 May 2024 20:59:33 +0100 Subject: [PATCH] meshctrl deviceinfo error on unescaped nodeid Signed-off-by: si458 --- meshctrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshctrl.js b/meshctrl.js index db0506c8..391b261c 100644 --- a/meshctrl.js +++ b/meshctrl.js @@ -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; }