mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Add selected WAN interfaces to the list of gateways if not already there
This commit is contained in:
parent
8076ddc67f
commit
925332d70f
2 changed files with 19 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue