diff options
author | Michael Adam <obnox@samba.org> | 2009-11-10 00:52:53 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-11-10 00:55:39 +0100 |
commit | 60d738626b472d38ef1eda5ab6b0c17732ae970a (patch) | |
tree | ca69a21057f200a7ae0ca002460399f49a44d02c | |
parent | 4292fe7795cb3abfabb7196783779794c97ceb5c (diff) |
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
-rw-r--r-- | src/conf.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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})|" \ |