fix typo in regex

This commit is contained in:
viktorbarzin 2021-03-24 23:03:37 +00:00
parent f52f85bf83
commit 2ce19c3faa

View file

@ -22,7 +22,7 @@ const (
var ( var (
allowedClientName = regexp.MustCompile(`^[a-zA-Z0-9 ]+$`) allowedClientName = regexp.MustCompile(`^[a-zA-Z0-9 ]+$`)
allowedPubKey = regexp.MustCompile(`^[a-zA-Z0-9=]$`) allowedPubKey = regexp.MustCompile(`^[a-zA-Z0-9=]+$`)
) )
// addVPNClient inserts new client config // addVPNClient inserts new client config