mirror of https://github.com/fail2ban/fail2ban
bug fix in the config readers: mixing with the init section should affect only own init options (from init section only bypass default section);
the situation details: value of "_daemon" from default section "default" (with init section) falsely overwrites it from definition section "test" - the resulting value of "_daemon" should be "test" in all 3 resulting failregex's (as specified in test.local), fixed and covered now; additionally more complex cases covered also (all filter parameters in jail via "%(known/...)s", dynamical interpolation across all, etc);pull/1726/head
parent
4f1473724b
commit
57e9c25449
@ -1,6 +1,13 @@
|
||||
#[INCLUDES]
|
||||
#before = common.conf
|
||||
|
||||
[DEFAULT]
|
||||
_daemon = default
|
||||
|
||||
[Definition]
|
||||
failregex = failure test 1 (filter.d/test.conf) <HOST>
|
||||
where = conf
|
||||
failregex = failure <_daemon> <one> (filter.d/test.%(where)s) <HOST>
|
||||
|
||||
[Init]
|
||||
# test parameter, should be overriden in jail by "filter=test[one=1,...]"
|
||||
one = *1*
|
||||
|
Loading…
Reference in new issue