diff options
author | bjormel <bjormel@yahooinc.com> | 2023-10-26 07:22:15 +0000 |
---|---|---|
committer | bjormel <bjormel@yahooinc.com> | 2023-10-26 07:22:15 +0000 |
commit | 2bfccf23d82efef4c9115a6e9860f278b43635fd (patch) | |
tree | 96dbbd036a461b0d1160fb9a5b85d7abf9f2cddc /client | |
parent | 01431e4953faa89955978113c67887fa19ce8a4e (diff) |
Always configure TLS
Diffstat (limited to 'client')
-rw-r--r-- | client/go/internal/vespa/target.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/go/internal/vespa/target.go b/client/go/internal/vespa/target.go index 5b29990fe4e..8c3f5c9b7c3 100644 --- a/client/go/internal/vespa/target.go +++ b/client/go/internal/vespa/target.go @@ -109,9 +109,7 @@ type LogOptions struct { // Do sends request to this service. Authentication of the request happens automatically. func (s *Service) Do(request *http.Request, timeout time.Duration) (*http.Response, error) { - s.once.Do(func() { - util.ConfigureTLS(s.httpClient, s.TLSOptions.KeyPair, s.TLSOptions.CACertificate, s.TLSOptions.TrustAll) - }) + util.ConfigureTLS(s.httpClient, s.TLSOptions.KeyPair, s.TLSOptions.CACertificate, s.TLSOptions.TrustAll) if s.auth != nil { if err := s.auth.Authenticate(request); err != nil { return nil, fmt.Errorf("%w: %s", errAuth, err) |