fix typo in regex

This commit is contained in:
viktorbarzin 2021-03-24 23:03:37 +00:00
parent 139beb43a6
commit 6fb4e2a1b7

View file

@ -22,7 +22,7 @@ const (
var (
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