summaryrefslogtreecommitdiffhomepage
path: root/src/conf.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-11-10 00:52:53 +0100
committerMichael Adam <obnox@samba.org>2009-11-10 00:55:39 +0100
commit60d738626b472d38ef1eda5ab6b0c17732ae970a (patch)
treeca69a21057f200a7ae0ca002460399f49a44d02c /src/conf.c
parent4292fe7795cb3abfabb7196783779794c97ceb5c (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
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c1
1 files changed, 1 insertions, 0 deletions
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})|" \