From 79f4c20c255d7b72cc26e1db2aefc5fef6ac34fd Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Tue, 15 May 2018 18:24:54 +0200 Subject: [PATCH] fix(endpoints): set TLSSkipVerify to false when TLS is not enabled during update (#1896) --- api/http/handler/endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/http/handler/endpoint.go b/api/http/handler/endpoint.go index 141f8d29d..497ee9cae 100644 --- a/api/http/handler/endpoint.go +++ b/api/http/handler/endpoint.go @@ -472,7 +472,7 @@ func (handler *EndpointHandler) handlePutEndpoint(w http.ResponseWriter, r *http } } else { endpoint.TLSConfig.TLS = false - endpoint.TLSConfig.TLSSkipVerify = true + endpoint.TLSConfig.TLSSkipVerify = false endpoint.TLSConfig.TLSCACertPath = "" endpoint.TLSConfig.TLSCertPath = "" endpoint.TLSConfig.TLSKeyPath = ""