update base64 regex for pub key
This commit is contained in:
parent
df4c297097
commit
c4465b9425
2 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ var (
|
|||
func main() {
|
||||
err := run()
|
||||
if err != nil {
|
||||
glog.Fatalf("run failed: %s", err.Error())
|
||||
glog.Errorf("run failed: %s", err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$`)
|
||||
)
|
||||
|
||||
// addVPNClient inserts new client config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue