1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix adding interface via wizard

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-10-30 19:29:27 +01:00
parent 0a8cc8456e
commit c8e77cca25

View file

@ -93,7 +93,9 @@ function wizard_add()
ucic:foreach("network", "interface", function(s) ucic:foreach("network", "interface", function(s)
local sectionname = s[".name"] local sectionname = s[".name"]
if sectionname:match("^wan(%d+)$") then if sectionname:match("^wan(%d+)$") then
i = tonumber(string.match(sectionname, '(%d+)$')) + 1 if i <= tonumber(string.match(sectionname, '%d+')) then
i = tonumber(string.match(sectionname, '%d+')) + 1
end
end end
if ucic:get("network",sectionname,"multipath") == "master" then if ucic:get("network",sectionname,"multipath") == "master" then
multipath_master = true multipath_master = true