/dhcp/status -- give out hostname for UI
This commit is contained in:
parent
86d79ae232
commit
7acb107cbf
1
dhcp.go
1
dhcp.go
|
@ -23,6 +23,7 @@ func handleDHCPStatus(w http.ResponseWriter, r *http.Request) {
|
|||
lease := map[string]string{
|
||||
"mac": rawLeases[i].HWAddr.String(),
|
||||
"ip": rawLeases[i].IP.String(),
|
||||
"hostname": rawLeases[i].Hostname,
|
||||
"expires": rawLeases[i].Expiry.Format(time.RFC3339),
|
||||
}
|
||||
leases = append(leases, lease)
|
||||
|
|
Loading…
Reference in New Issue