fixup of previous commit -- make json fields lowercase_underscored
This commit is contained in:
parent
87b3c92f71
commit
c073f9db7b
8
dhcp.go
8
dhcp.go
|
@ -47,10 +47,10 @@ func handleDHCPInterfaces(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
type responseInterface struct {
|
type responseInterface struct {
|
||||||
Name string
|
Name string `json:"name"`
|
||||||
MTU int
|
MTU int `json:"mtu"`
|
||||||
HardwareAddr string
|
HardwareAddr string `json:"hardware_address"`
|
||||||
Addresses []string
|
Addresses []string `json:"ip_addresses"`
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := range ifaces {
|
for i := range ifaces {
|
||||||
|
|
Loading…
Reference in New Issue