Fix logic error with http redirects
This commit is contained in:
parent
7bfcf8b7f8
commit
26e5ef3978
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ func Setup(opts *cnf.Options) (err error) {
|
|||
// Redirect non-https
|
||||
|
||||
s.Use(mw.Secure(&mw.SecureOpts{
|
||||
RedirectHTTP: len(opts.Cert.Crt) == 0 || len(opts.Cert.Key) == 0,
|
||||
RedirectHTTP: len(opts.Cert.Crt) != 0 || len(opts.Cert.Key) != 0,
|
||||
}))
|
||||
|
||||
// Log successful start
|
||||
|
|
Loading…
Reference in a new issue