From 3af15f58b9f4bec30f5b483d67a42ce651c153ea Mon Sep 17 00:00:00 2001 From: Britt Dodd Date: Mon, 10 Jan 2022 19:00:16 -0500 Subject: [PATCH] self codereview, missed a function call change --- handler/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"}) }