diff --git a/handler/routes.go b/handler/routes.go index 4c3b666..9c18fc4 100644 --- a/handler/routes.go +++ b/handler/routes.go @@ -161,7 +161,7 @@ func NewClient(db store.IStore) echo.HandlerFunc { } // validate extra AllowedIPs - if util.ValidateAllowedIPs(client.ExtraAllowedIPs) == false { + if util.ValidateExtraAllowedIPs(client.ExtraAllowedIPs) == false { log.Warnf("Invalid Extra AllowedIPs input from user: %v", client.ExtraAllowedIPs) return c.JSON(http.StatusBadRequest, jsonHTTPResponse{false, "Extra AllowedIPs must be in CIDR format"}) }