diff --git a/dhcp.go b/dhcp.go index 3c0c5b31..38284606 100644 --- a/dhcp.go +++ b/dhcp.go @@ -47,10 +47,10 @@ func handleDHCPInterfaces(w http.ResponseWriter, r *http.Request) { } type responseInterface struct { - Name string - MTU int - HardwareAddr string - Addresses []string + Name string `json:"name"` + MTU int `json:"mtu"` + HardwareAddr string `json:"hardware_address"` + Addresses []string `json:"ip_addresses"` } for i := range ifaces {