From f8b1b8a47ad985b577484c281ddd31dff16f24fb Mon Sep 17 00:00:00 2001 From: Martin Schiller Date: Fri, 10 Nov 2017 13:49:45 +0100 Subject: luci-proto-ipv6: fix patterns in proto_4x6.lua The dash '-' needs to be escaped by a '%', otherwise it will be interpreted as minus, which means '0 or more repetitions'. This fixes LEDE FS#1157. Signed-off-by: Martin Schiller --- protocols/luci-proto-ipv6/luasrc/model/network/proto_4x6.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/luci-proto-ipv6/luasrc') diff --git a/protocols/luci-proto-ipv6/luasrc/model/network/proto_4x6.lua b/protocols/luci-proto-ipv6/luasrc/model/network/proto_4x6.lua index d876d69ba8..ad99073ad6 100644 --- a/protocols/luci-proto-ipv6/luasrc/model/network/proto_4x6.lua +++ b/protocols/luci-proto-ipv6/luasrc/model/network/proto_4x6.lua @@ -54,10 +54,10 @@ for _, p in ipairs({"dslite", "map", "464xlat"}) do end if p == "dslite" then - netmod:register_pattern_virtual("^ds-%w") + netmod:register_pattern_virtual("^ds%-%w") elseif p == "map" then - netmod:register_pattern_virtual("^map-%w") + netmod:register_pattern_virtual("^map%-%w") elseif p == "464xlat" then - netmod:register_pattern_virtual("^464-%w") + netmod:register_pattern_virtual("^464%-%w") end end -- cgit v1.2.3