From 68793ffe133f0ad67b28d221fe22d05fb4f0c772 Mon Sep 17 00:00:00 2001 From: Nimi Wariboko Jr Date: Mon, 4 May 2015 22:26:28 -0700 Subject: [PATCH] Disable tls if the port is http --- config/setup/tls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/setup/tls.go b/config/setup/tls.go index ea2675345..93e9324d4 100644 --- a/config/setup/tls.go +++ b/config/setup/tls.go @@ -3,7 +3,7 @@ package setup import "github.com/mholt/caddy/middleware" func TLS(c *Controller) (middleware.Middleware, error) { - c.TLS.Enabled = true + c.TLS.Enabled = c.Port != "http" for c.Next() { if !c.NextArg() {