mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fix gw reassignment with static ip
This commit is contained in:
parent
1879067ef9
commit
6a2b6ba503
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ if table.len(_POST) > 0 then
|
|||
-- Static gw
|
||||
config.network.gateway = _POST[fields.gw]
|
||||
-- Add to the list of gateways if not already present
|
||||
sys_config:addGateway(if_name, if_name, config.network.gateway)
|
||||
sys_config:updateGateway(if_name, if_name, config.network.gateway)
|
||||
end
|
||||
if _POST[fields.mode] and _POST[fields.mode] == 'dhcp' then
|
||||
-- dhcp: reset static gw ip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue