Browse Source

* show state flag in 'jail status' cmd

master
Alex 'AdUser' Z 8 years ago
parent
commit
599e3311a0
  1. 2
      src/jail.c

2
src/jail.c

@ -477,6 +477,7 @@ f2b_jail_cmd_status(char *res, size_t ressize, f2b_jail_t *jail) {
"name: %s\n"
"flags:\n"
" enabled: %s\n"
" state: %s\n"
"maxretry: %d\n"
"times:\n"
" bantime: %d\n"
@ -494,6 +495,7 @@ f2b_jail_cmd_status(char *res, size_t ressize, f2b_jail_t *jail) {
snprintf(res, ressize, fmt, jail->name,
jail->flags & JAIL_ENABLED ? "yes" : "no",
jail->flags & JAIL_HAS_STATE ? "yes" : "no",
jail->maxretry,
jail->bantime, jail->findtime, jail->expiretime,
jail->incr_bantime, jail->incr_findtime,

Loading…
Cancel
Save