mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-21 20:12:33 +03:00
self codereview, missed a function call change
This commit is contained in:
parent
c61270237d
commit
3af15f58b9
1 changed files with 1 additions and 1 deletions
|
@ -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"})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue