+ "dhcp_available"

This commit is contained in:
Simon Zolin
2020-05-29 14:25:20 +03:00
parent 82bd8dbbf2
commit 4f0a4173b5
4 changed files with 21 additions and 10 deletions

View File

@@ -56,6 +56,7 @@ func handleStatus(w http.ResponseWriter, r *http.Request) {
"protection_enabled": c.ProtectionEnabled,
}
data["dhcp_available"] = (Context.dhcpServer != nil)
jsonVal, err := json.Marshal(data)
if err != nil {