mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-09-11 08:55:32 +03:00
meshctrl deviceinfo error on unescaped nodeid
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
7e7361de9b
commit
7cf14a2b69
@ -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");
|
console.log("Invalid device id");
|
||||||
process.exit(); return;
|
process.exit(); return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user