[packages/fail2ban] - fix <HOST> regex to match IPv6 addresses ending in ":"

baggins baggins at pld-linux.org
Mon Jan 13 12:04:26 CET 2014


commit 4dd71ab3c7117809a05b4248da59acae5577b7c8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Jan 13 12:03:35 2014 +0100

    - fix <HOST> regex to match IPv6 addresses ending in ":"
    
    Fix by RolandRosenfeld:
    https://github.com/pld-linux/fail2ban/commit/896749cfb4183d7576c079733ca78ef778c1d47a#commitcomment-5047875

 ipv6.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ipv6.patch b/ipv6.patch
index 1abc27e..628e522 100644
--- a/ipv6.patch
+++ b/ipv6.patch
@@ -513,7 +513,7 @@ diff -urN fail2ban-0.8.11.orig/server/failregex.py fail2ban-0.8.11/server/failre
  		# 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)")
++		regex = regex.replace("<HOST>", "(?:::f{4,6}:)?(?P<host>[\w\-.^_:]*[\w:])")
  		if regex.lstrip() == '':
  			raise RegexException("Cannot add empty regex")
  		try:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fail2ban.git/commitdiff/7eaade64bcea73ce00e122a08283cab62dea26fd



More information about the pld-cvs-commit mailing list