Fix yaml marshalling panic.

This commit is contained in:
Eugene Bujak
2018-12-13 13:17:41 +03:00
parent 9294c9ecb2
commit 96fbf7f134
2 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ import (
func handleDHCPStatus(w http.ResponseWriter, r *http.Request) {
status := map[string]interface{}{
"config": config.DHCP.dhcpConfig,
"config": config.DHCP.Config,
"leases": config.DHCP.Leases,
}
@@ -28,7 +28,7 @@ func handleDHCPSetConfig(w http.ResponseWriter, r *http.Request) {
return
}
config.DHCP.dhcpConfig = newconfig
config.DHCP.Config = newconfig
}
// TODO: implement