Explicitly check if tls_disable == 1

This commit is contained in:
Seth Vargo 2015-05-14 09:45:45 -04:00
parent 9633c9b94b
commit 5c93047642

View file

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