mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-08 00:56:58 +03:00
sessionSecretLookup syntax
This commit is contained in:
parent
da88da8560
commit
eae490e471
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -100,7 +100,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// check empty sessionSecret env var
|
// 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.")
|
flag.StringVar(&flagSessionSecret, "session-secret", sessionSecretLookup, "The key used to encrypt session cookies.")
|
||||||
} else {
|
} else {
|
||||||
flag.StringVar(&flagSessionSecret, "session-secret", util.LookupEnvOrFile("SESSION_SECRET_FILE", flagSessionSecret), "File containing the key used to encrypt session cookies.")
|
flag.StringVar(&flagSessionSecret, "session-secret", util.LookupEnvOrFile("SESSION_SECRET_FILE", flagSessionSecret), "File containing the key used to encrypt session cookies.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue