mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Improve support for multiple local addresses
This commit is contained in:
parent
8a0154dfaf
commit
0333e051e7
3 changed files with 56 additions and 25 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue