diff --git a/web/web.go b/web/web.go index b8841fec..f455c74e 100644 --- a/web/web.go +++ b/web/web.go @@ -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