Add new remote command:

- hosts: display connected hosts, or NONE if disconnected (surrounded with double quotes).
This commit is contained in:
Daniel Caujolle-Bert
2022-01-21 08:13:24 +00:00
parent 5aa6e54130
commit 6c36e29f88
6 changed files with 44 additions and 0 deletions

View File

@@ -111,6 +111,15 @@ REMOTE_COMMAND CRemoteControl::getCommand()
}
m_command = RCD_CONNECTION_STATUS;
} else if (m_args.at(0U) == "hosts") {
if (m_host != NULL) {
m_host->buildNetworkHostsString(replyStr);
}
else {
replyStr = "KO";
}
m_command = RCD_CONFIG_HOSTS;
} else {
replyStr = "KO";
}