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" }