mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
add validation for node.Address
This commit is contained in:
@@ -765,7 +765,6 @@ func updateNode(w http.ResponseWriter, r *http.Request) {
|
||||
if nodechange.MacAddress == "" {
|
||||
nodechange.MacAddress = node.MacAddress
|
||||
}
|
||||
|
||||
err = ValidateNode("update", params["network"], nodechange)
|
||||
if err != nil {
|
||||
returnErrorResponse(w, r, formatError(err, "badrequest"))
|
||||
|
Reference in New Issue
Block a user