From 5c930476420cfd81e42a00a27aa3979839b1d44e Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 14 May 2015 09:45:45 -0400 Subject: [PATCH] Explicitly check if tls_disable == 1 --- command/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/server.go b/command/server.go index 991cba35f5..b4b1f2ba69 100644 --- a/command/server.go +++ b/command/server.go @@ -293,7 +293,7 @@ func (c *ServerCommand) detectAdvertise(detect physical.AdvertiseDetect, } // Check if TLS is disabled - if _, ok := list.Config["tls_disable"]; ok { + if val, ok := list.Config["tls_disable"]; ok && val == "1" { scheme = "http" }