From 2a494a7c4a7c3b6d2a999e666ef9a5ba8ab344c5 Mon Sep 17 00:00:00 2001 From: Sergey Bykov Date: Wed, 2 Mar 2022 08:30:04 -0800 Subject: [PATCH] Pass useTLS in GetFrontendClientConfig's callback --- common/rpc/encryption/localStoreTlsProvider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rpc/encryption/localStoreTlsProvider.go b/common/rpc/encryption/localStoreTlsProvider.go index 65a782fb5cd..2561132972a 100644 --- a/common/rpc/encryption/localStoreTlsProvider.go +++ b/common/rpc/encryption/localStoreTlsProvider.go @@ -157,7 +157,7 @@ func (s *localStoreTlsProvider) GetFrontendClientConfig() (*tls.Config, error) { &s.cachedFrontendClientConfig, func() (*tls.Config, error) { return newClientTLSConfig(s.workerCertProvider, client.ServerName, - s.settings.Frontend.Server.RequireClientAuth, true, !client.DisableHostVerification) + useTLS, true, !client.DisableHostVerification) }, useTLS, )