mirror of https://github.com/fail2ban/fail2ban
description provided, ChangeLog entries added
parent
0bdee2556f
commit
9935cf19c1
|
@ -22,6 +22,7 @@ releases.
|
||||||
uses "fail2ban-python" now);
|
uses "fail2ban-python" now);
|
||||||
* Fixed test case "testSetupInstallRoot" for not default python version (also
|
* Fixed test case "testSetupInstallRoot" for not default python version (also
|
||||||
using direct call, out of virtualenv);
|
using direct call, out of virtualenv);
|
||||||
|
* Fixed ambiguous wrong recognized date pattern resp. its optional parts (see gh-1512);
|
||||||
* `filter.d/ignorecommands/apache-fakegooglebot`
|
* `filter.d/ignorecommands/apache-fakegooglebot`
|
||||||
- Fixed error within apache-fakegooglebot, that will be called
|
- Fixed error within apache-fakegooglebot, that will be called
|
||||||
with wrong python version (gh-1506)
|
with wrong python version (gh-1506)
|
||||||
|
@ -33,6 +34,8 @@ releases.
|
||||||
### New Features
|
### New Features
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
* DateTemplate regexp extended with the word-end boundary, additionally to
|
||||||
|
word-start boundary
|
||||||
* Introduces new command "fail2ban-python", as automatically created symlink to
|
* Introduces new command "fail2ban-python", as automatically created symlink to
|
||||||
python executable, where fail2ban currently installed (resp. its modules are located):
|
python executable, where fail2ban currently installed (resp. its modules are located):
|
||||||
- allows to use the same version, fail2ban currently running, e.g. in
|
- allows to use the same version, fail2ban currently running, e.g. in
|
||||||
|
|
|
@ -72,8 +72,12 @@ class DateTemplate(object):
|
||||||
regex : str
|
regex : str
|
||||||
The regex the template will use for searching for a date.
|
The regex the template will use for searching for a date.
|
||||||
wordBegin : bool
|
wordBegin : bool
|
||||||
Defines whether the regex should be modified to search at
|
Defines whether the regex should be modified to search at beginning of a
|
||||||
beginning of a word, by adding "\\b" to start of regex.
|
word, by adding special boundary r'(?=^|\b|\W)' to start of regex.
|
||||||
|
Default True.
|
||||||
|
wordEnd : bool
|
||||||
|
Defines whether the regex should be modified to search at end of a word,
|
||||||
|
by adding special boundary r'(?=\b|\W|$)' to end of regex.
|
||||||
Default True.
|
Default True.
|
||||||
|
|
||||||
Raises
|
Raises
|
||||||
|
|
Loading…
Reference in New Issue