Skip to content

Commit d6039ca

Browse files
committed
Remove deprecated BuildNameToCertificate
1 parent efbf3bc commit d6039ca

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

proxy/tls.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ func newTLSClientConfig(conf *config.Config) (*tls.Config, error) {
185185
return nil, err
186186
}
187187
cfg.Certificates = []tls.Certificate{cert}
188-
cfg.BuildNameToCertificate()
189188
}
190189

191190
if opts.CAChainCertFile != "" {

proxy/tls_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ func TestTLSBadClientCert(t *testing.T) {
329329
_, _, _, err := makeTLSPipe(c)
330330

331331
a.NotNil(err)
332-
a.Contains(err.Error(), "tls: failed to verify client's certificate")
332+
a.Contains(err.Error(), "tls: failed to verify client certificate")
333333
}
334334

335335
func pingPong(t *testing.T, c1, c2 net.Conn) {

0 commit comments

Comments
 (0)