mirror of
https://github.com/minio/minio.git
synced 2025-05-22 18:11:50 -04:00
Fix regression in peer clients in TLS setups (#7391)
Regression was introduced in eb69c4f946ce10f5996566f9ee4c550a3119aeae
This commit is contained in:
parent
73be3ed0ca
commit
328eb74cbb
@ -410,7 +410,7 @@ func newPeerRESTClient(peer *xnet.Host) (*peerRESTClient, error) {
|
|||||||
var tlsConfig *tls.Config
|
var tlsConfig *tls.Config
|
||||||
if globalIsSSL {
|
if globalIsSSL {
|
||||||
tlsConfig = &tls.Config{
|
tlsConfig = &tls.Config{
|
||||||
ServerName: peer.String(),
|
ServerName: peer.Name,
|
||||||
RootCAs: globalRootCAs,
|
RootCAs: globalRootCAs,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user