Add selected WAN interfaces to the list of gateways if not already there

This commit is contained in:
Alfredo Cardigliano 2024-04-11 16:29:07 +02:00
parent 8076ddc67f
commit 925332d70f
2 changed files with 19 additions and 2 deletions

View file

@ -298,6 +298,13 @@ function system_config:getUnusedInterfaces()
end
end
-- Get the WAN interfaces, based on the current operating mode
function system_config:getWanInterfaces()
local mode = self:getOperatingMode()
return self.config.globals.available_modes[mode].interfaces.wan
end
-- Get the LAN interfaces, based on the current operating mode
function system_config:getLanInterfaces()
local mode = self:getOperatingMode()
@ -856,7 +863,10 @@ function system_config:writeSystemFiles()
end
self:_writeNetworkInterfaces()
system_config.setFirstStart(false)
if system_config.isFirstStart() then
system_config.setFirstStart(false)
end
end
-- ##############################################