/dhcp/set_config API — don't forget to save changed config to YAML

This commit is contained in:
Eugene Bujak 2018-12-28 20:49:27 +03:00
parent 4aea91a70c
commit 6fd9af3c60
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ func handleDHCPSetConfig(w http.ResponseWriter, r *http.Request) {
dhcpServer.Stop() dhcpServer.Stop()
} }
config.DHCP = newconfig config.DHCP = newconfig
httpUpdateConfigReloadDNSReturnOK(w, r)
} }
func handleDHCPInterfaces(w http.ResponseWriter, r *http.Request) { func handleDHCPInterfaces(w http.ResponseWriter, r *http.Request) {