Fix vlan as wan interfaces

This commit is contained in:
Alfredo Cardigliano 2024-04-12 12:27:28 +02:00
parent c74151d21b
commit 76c2696dcb
3 changed files with 15 additions and 3 deletions

View file

@ -40,7 +40,7 @@ if (_POST["lan_interfaces"] ~= nil) and (_POST["wan_interfaces"] ~= nil) then
-- Add to the list of gateways if not already present
local wan_ifaces = sys_config:getWanInterfaces()
for _, wan_iface in ipairs(wan_ifaces) do
sys_config:addGateway(wan_iface)
sys_config:addGateway(wan_iface, wan_iface)
end
end