mirror of
https://github.com/ngoduykhanh/wireguard-ui
synced 2024-05-28 03:22:39 +02:00
sessionSecretLookup syntax
This commit is contained in:
parent
da88da8560
commit
eae490e471
2
main.go
2
main.go
|
@ -100,7 +100,7 @@ func init() {
|
|||
}
|
||||
|
||||
// check empty sessionSecret env var
|
||||
if util.LookupEnvOrString("SESSION_SECRET", flagSessionSecret) != "" {
|
||||
if sessionSecretLookup != "" {
|
||||
flag.StringVar(&flagSessionSecret, "session-secret", sessionSecretLookup, "The key used to encrypt session cookies.")
|
||||
} else {
|
||||
flag.StringVar(&flagSessionSecret, "session-secret", util.LookupEnvOrFile("SESSION_SECRET_FILE", flagSessionSecret), "File containing the key used to encrypt session cookies.")
|
||||
|
|
Loading…
Reference in a new issue