Browse Source

* fix csocket 'help' command

master
Alex 'AdUser' Z 4 years ago
parent
commit
c51fb24fec
  1. 5
      src/daemon.c

5
src/daemon.c

@ -89,6 +89,11 @@ f2b_csocket_cmd_process(const f2b_cmd_t *cmd, f2b_buf_t *res) {
if (cmd->type == CMD_UNKNOWN)
return;
if (cmd->type == CMD_HELP) {
f2b_buf_append(res, f2b_cmd_help(), 0);
return;
}
if (cmd->type >= CMD_JAIL_STATUS && cmd->type <= CMD_JAIL_FILTER_RELOAD) {
if ((jail = f2b_jail_find(jails, cmd->args[1])) == NULL) {
len = snprintf(buf, sizeof(buf), "can't find jail '%s'\n", cmd->args[1]);

Loading…
Cancel
Save