fixup of previous commit -- Remove commented out code
This commit is contained in:
9
dhcp.go
9
dhcp.go
@@ -77,15 +77,6 @@ func handleDHCPInterfaces(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
for _, addr := range addrs {
|
||||
// ip, ok := addr.(*net.IPNet)
|
||||
// if !ok {
|
||||
// // not an IP address
|
||||
// continue
|
||||
// }
|
||||
// responseAddr := address{
|
||||
// IP: ip.IP.String(),
|
||||
// Netmask: ip.Mask.String(),
|
||||
// }
|
||||
iface.Addresses = append(iface.Addresses, addr.String())
|
||||
}
|
||||
if len(iface.Addresses) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user