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:
parent
0a8cc8456e
commit
c8e77cca25
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue