From 347cd712877301945d59e782fde0b7e7813586ca Mon Sep 17 00:00:00 2001 From: Gregory Boddin Date: Thu, 3 Jun 2021 01:35:15 +0200 Subject: [PATCH] [test-fix] Added a TLS session cache --- l9plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l9plugin.go b/l9plugin.go index 5c82f5b..d25bb68 100644 --- a/l9plugin.go +++ b/l9plugin.go @@ -83,7 +83,7 @@ func (plugin ServicePluginBase) GetHttpClient(ctx context.Context, ip string, po ResponseHeaderTimeout: 2 * time.Second, ExpectContinueTimeout: 2 * time.Second, DisableKeepAlives: true, - TLSClientConfig: &tls.Config{InsecureSkipVerify: true,ClientSessionCache: tlsSessionCache}, + TLSClientConfig: &tls.Config{InsecureSkipVerify: true,ClientSessionCache: TlsSessionCache}, }, Timeout: 5 * time.Second, CheckRedirect: func(req *http.Request, via []*http.Request) error {