mirror of https://github.com/fail2ban/fail2ban
fail2ban-regex: accepts filter parameters with new-line
parent
96121830da
commit
b83712e3ec
|
@ -331,7 +331,7 @@ class Fail2banRegex(object):
|
||||||
fltFile = None
|
fltFile = None
|
||||||
fltOpt = {}
|
fltOpt = {}
|
||||||
if regextype == 'fail':
|
if regextype == 'fail':
|
||||||
if re.search(r'^/{0,3}[\w/_\-.]+(?:\[.*\])?$', value):
|
if re.search(r'^(?ms)/{0,3}[\w/_\-.]+(?:\[.*\])?$', value):
|
||||||
try:
|
try:
|
||||||
fltName, fltOpt = extractOptions(value)
|
fltName, fltOpt = extractOptions(value)
|
||||||
if "." in fltName[~5:]:
|
if "." in fltName[~5:]:
|
||||||
|
|
Loading…
Reference in New Issue