Fix regression in peer clients in TLS setups (#7391)

Regression was introduced in eb69c4f946
This commit is contained in:
Harshavardhana 2019-03-18 21:14:49 -07:00 committed by Nitish Tiwari
parent 73be3ed0ca
commit 328eb74cbb

View File

@ -410,7 +410,7 @@ func newPeerRESTClient(peer *xnet.Host) (*peerRESTClient, error) {
var tlsConfig *tls.Config
if globalIsSSL {
tlsConfig = &tls.Config{
ServerName: peer.String(),
ServerName: peer.Name,
RootCAs: globalRootCAs,
}
}