Visitar URL original
fixup 5b5fc8d8300d2d52996d5073fba7e77b26a9348b: do not copy tls config · zrepl/zrepl@4448d13 · GitHub
Skip to content

Commit 4448d13

Browse files
committed
fixup 5b5fc8d: do not copy tls config
1 parent 22e00de commit 4448d13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tlsconf/tlsconf.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func NewClientAuthListener(
4141
panic(serverCert)
4242
}
4343

44-
tlsConf := tls.Config{
44+
tlsConf := &tls.Config{
4545
Certificates: []tls.Certificate{serverCert},
4646
ClientCAs: ca,
4747
ClientAuth: tls.RequireAndVerifyClientCert,
@@ -50,7 +50,7 @@ func NewClientAuthListener(
5050
}
5151
return &ClientAuthListener{
5252
l,
53-
tlsConf,
53+
&tlsConf,
5454
handshakeTimeout,
5555
}
5656
}

0 commit comments

Comments
 (0)