]> git.pld-linux.org Git - packages/fail2ban.git/commitdiff
- fix <HOST> regex to match IPv6 addresses ending in ":"
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 13 Jan 2014 11:03:35 +0000 (12:03 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 13 Jan 2014 11:03:35 +0000 (12:03 +0100)
Fix by RolandRosenfeld:
https://github.com/pld-linux/fail2ban/commit/896749cfb4183d7576c079733ca78ef778c1d47a#commitcomment-5047875

ipv6.patch

index 1abc27ee823037626b1bcf801b6001d547c77710..628e5227f29adaf3569af6cf4cd00a06d1949285 100644 (file)
@@ -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:
This page took 0.116163 seconds and 4 git commands to generate.