Fix review comments

This commit is contained in:
Andrey Meshkov
2019-02-11 14:22:36 +03:00
parent b477b67428
commit a40ddb094b
6 changed files with 21 additions and 15 deletions

View File

@@ -85,8 +85,8 @@ func handleDHCPInterfaces(w http.ResponseWriter, r *http.Request) {
// this interface doesn't support broadcast, skip it
continue
}
addrs, e := iface.Addrs()
if e != nil {
addrs, err := iface.Addrs()
if err != nil {
httpError(w, http.StatusInternalServerError, "Failed to get addresses for interface %s: %s", iface.Name, err)
return
}