diff options
Diffstat (limited to 'plugins/http/config')
-rw-r--r-- | plugins/http/config/http.go | 2 | ||||
-rw-r--r-- | plugins/http/config/ssl.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/http/config/http.go b/plugins/http/config/http.go index 022476e2..d48ed022 100644 --- a/plugins/http/config/http.go +++ b/plugins/http/config/http.go @@ -53,7 +53,7 @@ func (c *HTTP) EnableHTTP() bool { // EnableTLS returns true if pool must listen TLS connections. func (c *HTTP) EnableTLS() bool { - return c.SSLConfig.Key != "" || c.SSLConfig.Cert != "" || c.SSLConfig.RootCA != "" + return c.SSLConfig.Key != "" || c.SSLConfig.Cert != "" } // EnableH2C when HTTP/2 extension must be enabled on TCP. diff --git a/plugins/http/config/ssl.go b/plugins/http/config/ssl.go index eb2b72b5..d44703f9 100644 --- a/plugins/http/config/ssl.go +++ b/plugins/http/config/ssl.go @@ -40,7 +40,7 @@ func (s *SSL) Valid() error { // use 0.0.0.0 as host and 443 as port case 2: if parts[0] == "" { - s.host = "0.0.0.0" + s.host = "127.0.0.1" } else { s.host = parts[0] } |