Browse Source

* update sample configs

master
Alex 'AdUser' Z 8 years ago
parent
commit
e6f35cef90
  1. 7
      docs/f2b.conf.sample
  2. 2
      src/filters/pcre.c

7
docs/f2b.conf.sample

@ -19,6 +19,13 @@ backend = exec-ipset:banned
[filter:preg]
load = libf2b_filter_preg.so
icase = no
[filter:pcre]
load = libf2b_filter_pcre.so
icase = no
study = no
usejit = no
[backend:exec-ipset]
load = libf2b_backend_exec.so

2
src/filters/pcre.c

@ -57,7 +57,7 @@ config(cfg_t *cfg, const char *key, const char *value) {
cfg->study = (strcmp(value, "yes") == 0) ? true : false;
return true;
}
if (strcmp(key, "use_jit") == 0) {
if (strcmp(key, "usejit") == 0) {
cfg->usejit = (strcmp(value, "yes") == 0) ? true : false;
return true;
}

Loading…
Cancel
Save