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:
Logan Cusano
2023-04-30 04:42:04 -04:00
parent 95c99971a2
commit 0cefdba00f
4 changed files with 39 additions and 4 deletions

View File

@@ -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;