summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-11-09 23:25:13 +0100
committerMichael Adam <obnox@samba.org>2009-11-09 23:26:46 +0100
commit2b73e2183f2a31b4c267fe5991747c8cd55b8b2d (patch)
tree364a37f84741c73be5443da4f9e89dc728078bbc /src
parentf4f14419c4917287c21ad3d4fb73d76050019a58 (diff)
conf: fix the IPV6 regex patterns, take two
The patterns should not end with the end of line marker, since they might be part of a continuing pattern, say of the form ipv6address/mask (used for allow/deny) Michael
Diffstat (limited to 'src')
-rw-r--r--src/conf.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/conf.c b/src/conf.c
index 76ed326..fc9cf3b 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -53,23 +53,23 @@
#define IP "((([0-9]{1,3})\\.){3}[0-9]{1,3})"
#define IPMASK "(" IP "(/[[:digit:]]+)?)"
#define IPV6 "(" \
- "(([0-9a-f]{1,4}:){1,1}(:[0-9a-f]{1,4}){1,6}$)|" \
- "(([0-9a-f]{1,4}:){1,2}(:[0-9a-f]{1,4}){1,5}$)|" \
- "(([0-9a-f]{1,4}:){1,3}(:[0-9a-f]{1,4}){1,4}$)|" \
- "(([0-9a-f]{1,4}:){1,4}(:[0-9a-f]{1,4}){1,3}$)|" \
- "(([0-9a-f]{1,4}:){1,5}(:[0-9a-f]{1,4}){1,2}$)|" \
- "(([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}:){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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