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 <ms@dev.tdt.de>
This commit is contained in:
parent
b2274e5d6d
commit
f8b1b8a47a
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue