diff options
author | Thomas Heinemann | 2017-01-15 12:19:09 +0100 |
---|---|---|
committer | Thomas Heinemann | 2017-01-15 12:19:09 +0100 |
commit | 49e2ffdd43ccbd51b301a3075792c42a08525cc7 (patch) | |
tree | 6f2c149da8ff0f98515e7a690428ef49a3cda807 /failregex.patch | |
download | aur-49e2ffdd43ccbd51b301a3075792c42a08525cc7.tar.gz |
initial release
Diffstat (limited to 'failregex.patch')
-rw-r--r-- | failregex.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/failregex.patch b/failregex.patch new file mode 100644 index 000000000000..6ff45378070c --- /dev/null +++ b/failregex.patch @@ -0,0 +1,12 @@ +# Fail2Ban IPv6 Patch for Fail2Ban v0.9.3, v0.9.4, v0.9.5 +--- failregex.py.orig ++++ failregex.py +@@ -44,7 +44,7 @@ + self._matchCache = None + # Perform shortcuts expansions. + # Replace "<HOST>" with default regular expression for host. +- regex = regex.replace("<HOST>", "(?:::f{4,6}:)?(?P<host>[\w\-.^_]*\w)") ++ regex = regex.replace("<HOST>", "(?:::f{4,6}:)?(?P<host>[\w\-.^_:]*\w)") + # Replace "<SKIPLINES>" with regular expression for multiple lines. + regexSplit = regex.split("<SKIPLINES>") + regex = regexSplit[0] |