diff --git a/controllers/ext_client.go b/controllers/ext_client.go index 1b1ec3dc7..2828ecc56 100644 --- a/controllers/ext_client.go +++ b/controllers/ext_client.go @@ -387,15 +387,15 @@ func createExtClient(w http.ResponseWriter, r *http.Request) { return } - var gateway models.EgressGatewayRequest - gateway.NetID = params["network"] - gateway.Ranges = customExtClient.ExtraAllowedIPs - err := logic.ValidateEgressRange(gateway) - if err != nil { - logger.Log(0, r.Header.Get("user"), "error validating egress range: ", err.Error()) - logic.ReturnErrorResponse(w, r, logic.FormatError(err, "badrequest")) - return - } + // var gateway models.EgressGatewayRequest + // gateway.NetID = params["network"] + // gateway.Ranges = customExtClient.ExtraAllowedIPs + // err := logic.ValidateEgressRange(gateway) + // if err != nil { + // logger.Log(0, r.Header.Get("user"), "error validating egress range: ", err.Error()) + // logic.ReturnErrorResponse(w, r, logic.FormatError(err, "badrequest")) + // return + // } node, err := logic.GetNodeByID(nodeid) if err != nil { @@ -542,15 +542,15 @@ func updateExtClient(w http.ResponseWriter, r *http.Request) { } } - var gateway models.EgressGatewayRequest - gateway.NetID = params["network"] - gateway.Ranges = update.ExtraAllowedIPs - err = logic.ValidateEgressRange(gateway) - if err != nil { - logger.Log(0, r.Header.Get("user"), "error validating egress range: ", err.Error()) - logic.ReturnErrorResponse(w, r, logic.FormatError(err, "badrequest")) - return - } + // var gateway models.EgressGatewayRequest + // gateway.NetID = params["network"] + // gateway.Ranges = update.ExtraAllowedIPs + // err = logic.ValidateEgressRange(gateway) + // if err != nil { + // logger.Log(0, r.Header.Get("user"), "error validating egress range: ", err.Error()) + // logic.ReturnErrorResponse(w, r, logic.FormatError(err, "badrequest")) + // return + // } var changedID = update.ClientID != oldExtClient.ClientID