From 7d1d1c114c2547e1719d507b12992bba21c1f1be Mon Sep 17 00:00:00 2001 From: Sergey Bykov <8248806+sergeybykov@users.noreply.github.com> Date: Wed, 9 Mar 2022 16:42:28 -0800 Subject: [PATCH] Pass useTLS in GetFrontendClientConfig's callback (#2563) --- 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, )