Skip to content

Commit

Permalink
fix extclient validation err messages
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 committed Oct 24, 2024
1 parent fcf94e5 commit 10de931
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion controllers/ext_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ func validateCustomExtClient(customExtClient *models.CustomExtClient, checkID bo
//validate clientid
if customExtClient.ClientID != "" {
if err := isValid(customExtClient.ClientID, checkID); err != nil {
return fmt.Errorf("client validatation: %v", err)
return fmt.Errorf("client validation: %v", err)
}
}
//extclient.ClientID = customExtClient.ClientID
Expand Down
6 changes: 3 additions & 3 deletions controllers/regex.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

var (
errInvalidExtClientPubKey = errors.New("incorrect ext client public key")
errInvalidExtClientID = errors.New("ext client ID must be alphanumderic and/or dashes and less that 15 chars")
errInvalidExtClientExtraIP = errors.New("ext client extra ip must be a valid cidr")
errInvalidExtClientDNS = errors.New("ext client dns must be a valid ip address")
errInvalidExtClientID = errors.New("client ID must be alphanumderic and/or dashes and less that 15 chars")
errInvalidExtClientExtraIP = errors.New("client extra ip must be a valid cidr")
errInvalidExtClientDNS = errors.New("client dns must be a valid ip address")
errDuplicateExtClientName = errors.New("duplicate client name")
)

Expand Down

0 comments on commit 10de931

Please sign in to comment.