fix use of variable

This commit is contained in:
Fluf 2018-07-12 14:18:10 -04:00 committed by GitHub
parent 34b5519d01
commit be6b426a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -726,7 +726,7 @@ func NewContext() {
}
EnableLetsEncrypt := sec.Key("ENABLE_LETSENCRYPT").MustBool(false)
LetsEncryptTOS := sec.Key("LETSENCRYPT_ACCEPTTOS").MustBool(false)
if !LetsEncryptTOS {
if !LetsEncryptTOS && EnableLetsEncrypt {
EnableLetsEncrypt = false
}
LetsEncryptDirectory = sec.Key("LETSENCRYPT_DIRECTORY").MustString("https")