fix: set random session secret if not set (#417)

This commit is contained in:
Khanh Ngo 2023-08-11 11:48:51 +02:00 committed by GitHub
parent 364a43e3dc
commit b55543f424
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -38,7 +38,7 @@ var (
flagSendgridApiKey string
flagEmailFrom string
flagEmailFromName string = "WireGuard UI"
flagSessionSecret string
flagSessionSecret string = util.RandomString(32)
flagWgConfTemplate string
flagBasePath string
)