Improve support for multiple local addresses

This commit is contained in:
Alfredo Cardigliano 2023-03-28 17:47:37 +02:00
parent 8a0154dfaf
commit 0333e051e7
3 changed files with 56 additions and 25 deletions

View file

@ -32,8 +32,10 @@ if (_POST["lan_interfaces"] ~= nil) and (_POST["wan_interfaces"] ~= nil) then
if (mode == "routing") then
-- Ensure we are on static mode on the lan inteface
local lan_iface = sys_config:getLanInterface()
sys_config:setInterfaceMode(lan_iface, "static")
local lan_ifaces = sys_config:getLanInterfaces()
for _, lan_iface in ipairs(lan_ifaces) do
sys_config:setInterfaceMode(lan_iface, "static")
end
end
sys_config:save()