From 60d738626b472d38ef1eda5ab6b0c17732ae970a Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 10 Nov 2009 00:52:53 +0100 Subject: conf: fix ipv6 regex patterns, take three This extends the pattern by an alternative where there are no double colons. This is for instance the case for and IPv6 address of the form 1111:222:33:4:55:666:7777:888 Michael --- src/conf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/conf.c b/src/conf.c index fc9cf3b..56e2906 100644 --- a/src/conf.c +++ b/src/conf.c @@ -61,6 +61,7 @@ "(([0-9a-f]{1,4}:){1,6}(:[0-9a-f]{1,4}){1,1})|" \ "((([0-9a-f]{1,4}:){1,7}|:):)|" \ "(:(:[0-9a-f]{1,4}){1,7})|" \ + "([0-9a-f]{1,4}(:[0-9a-f]{1,4}){1,7})|" \ "(((([0-9a-f]{1,4}:){6})(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}))|" \ "((([0-9a-f]{1,4}:){5}[0-9a-f]{1,4}:(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}))|" \ "(([0-9a-f]{1,4}:){5}:[0-9a-f]{1,4}:(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3})|" \ -- cgit v1.2.3