summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorroot <jgh146exb@wizmail.org>2012-04-02 20:57:49 +0100
committerroot <jgh146exb@wizmail.org>2012-04-02 20:57:49 +0100
commit48dc547000f0d1fa0bfea4040ee6ae71b530ef63 (patch)
treebb352cb938ce77f53d9fe9cd0282ece6526dd9d3 /test
parent3b4f55a3467f3c0dc52711f14fb3a593daa93f36 (diff)
Fix IPv6 RE
Diffstat (limited to 'test')
-rwxr-xr-xtest/runtest4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/runtest b/test/runtest
index 2a8dd160c..e71ee9fec 100755
--- a/test/runtest
+++ b/test/runtest
@@ -560,9 +560,9 @@ RESET_AFTER_EXTRA_LINE_READ:
s/host\s\Q$parm_ipv4\E\s\[\Q$parm_ipv4\E\]/host ipv4.ipv4.ipv4.ipv4 [ipv4.ipv4.ipv4.ipv4]/;
s/host\s\Q$parm_ipv6\E\s\[\Q$parm_ipv6\E\]/host ip6:ip6:ip6:ip6:ip6:ip6:ip6:ip6 [ip6:ip6:ip6:ip6:ip6:ip6:ip6:ip6]/;
s/\b\Q$parm_ipv4\E\b/ip4.ip4.ip4.ip4/g;
- s/\b\Q$parm_ipv6\E\b/ip6:ip6:ip6:ip6:ip6:ip6:ip6:ip6/g;
+ s/(^|\W)\K\Q$parm_ipv6\E/ip6:ip6:ip6:ip6:ip6:ip6:ip6:ip6/g;
s/\b\Q$parm_ipv4r\E\b/ip4-reverse/g;
- s/\b\Q$parm_ipv6r\E\b/ip6-reverse/g;
+ s/(^|\W)\K\Q$parm_ipv6r\E/ip6-reverse/g;
s/^(\s+host\s\S+\s+\[\S+\]) +$/$1 /;