diff options
author | Valery Piashchynski <[email protected]> | 2021-03-13 15:42:42 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-03-13 15:42:42 +0300 |
commit | b7a1b49fe6b0b8dc162fbbc2f167bf83d74cf217 (patch) | |
tree | e84e7ee9e02d5932e8e5e44f635d647de4833b0a /plugins/http/config | |
parent | 223bcc0885a7e660a27956093e6efbad83542c81 (diff) |
Make a ROOT_CA path optional
Signed-off-by: Valery Piashchynski <[email protected]>
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] } |