summarylogtreecommitdiffstats
path: root/failregex.patch
diff options
context:
space:
mode:
authorThomas Heinemann2017-01-15 12:19:09 +0100
committerThomas Heinemann2017-01-15 12:19:09 +0100
commit49e2ffdd43ccbd51b301a3075792c42a08525cc7 (patch)
tree6f2c149da8ff0f98515e7a690428ef49a3cda807 /failregex.patch
downloadaur-49e2ffdd43ccbd51b301a3075792c42a08525cc7.tar.gz
initial release
Diffstat (limited to 'failregex.patch')
-rw-r--r--failregex.patch12
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]