From 26e5ef39784ad08d1a69411c07210971d20cc1cb Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 23 Nov 2017 14:34:32 +0000 Subject: [PATCH] Fix logic error with http redirects --- web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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