Browse Source

* fix setting jail/enable

master
Alex 'AdUser' Z 8 years ago
parent
commit
79ad555d4d
  1. 5
      src/jail.c

5
src/jail.c

@ -50,8 +50,11 @@ f2b_jail_set_param(f2b_jail_t *jail, const char *param, const char *value) {
assert(value != NULL); assert(value != NULL);
if (strcmp(param, "enabled") == 0) { if (strcmp(param, "enabled") == 0) {
if (strcmp(value, "yes") == 0) if (strcmp(value, "yes") == 0) {
jail->flags |= JAIL_ENABLED; jail->flags |= JAIL_ENABLED;
} else {
jail->flags &= ~JAIL_ENABLED;
}
return true; return true;
} }
if (strcmp(param, "bantime") == 0) { if (strcmp(param, "bantime") == 0) {

Loading…
Cancel
Save