summarylogtreecommitdiffstats
path: root/failregex.patch
blob: 6ff45378070c711b577828da861292758443056f (plain)
1
2
3
4
5
6
7
8
9
10
11
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]