mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Add dhcp_server_utils. Use Kea DHCP server when installed
This commit is contained in:
parent
c383f14642
commit
ef0b101ef2
4 changed files with 109 additions and 83 deletions
|
|
@ -1072,11 +1072,11 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function system_config:_enableDisableDhcpService()
|
||||
local isc_dhcp_server = require "isc_dhcp_server"
|
||||
local dhcp_server_utils = require "dhcp_server_utils"
|
||||
if self:isDhcpServerEnabled() then
|
||||
isc_dhcp_server.startDHCPService()
|
||||
dhcp_server_utils.startDHCPService()
|
||||
else
|
||||
isc_dhcp_server.stopDHCPService()
|
||||
dhcp_server_utils.stopDHCPService()
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue