From: Source Maintenance Date: Mon, 9 Feb 2015 18:12:05 +0000 (+0000) Subject: SourceFormat Enforcement X-Git-Tag: merge-candidate-3-v1~274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0417b9f4fd0fd6c6edb2457569c73f2a91e36e1d;p=thirdparty%2Fsquid.git SourceFormat Enforcement --- diff --git a/src/ssl/PeerConnector.cc b/src/ssl/PeerConnector.cc index 0abf94890b..5665299721 100644 --- a/src/ssl/PeerConnector.cc +++ b/src/ssl/PeerConnector.cc @@ -190,7 +190,7 @@ Ssl::PeerConnector::initializeSsl() } else { // Use SNI TLS extension only when we connect directly // to the origin server and we know the server host name. - const char *sniServer = hostName ? hostName : + const char *sniServer = hostName ? hostName : (!request->GetHostIsNumeric() ? request->GetHost() : NULL); if (sniServer) Ssl::setClientSNI(ssl, sniServer);