Adding Server Checkin
- Update client handler to check IP - Add checkin to startup - Add acceptable commands - Needs linux command - Needs testing
This commit is contained in:
@@ -11,7 +11,7 @@ const execCommand = promisify(exec);
|
||||
async function executeAsyncConsoleCommand(consoleCommand) {
|
||||
// Check to see if the command is a real command
|
||||
// TODO needs to be improved
|
||||
const acceptableCommands = [ "arecord -L" ];
|
||||
const acceptableCommands = [ "arecord -L", 'ipconfig', 'ip addr' ];
|
||||
if (!acceptableCommands.includes(consoleCommand)) {
|
||||
log.WARN("Console command is not acceptable: ", consoleCommand);
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user