mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
don't set _peerHostName from peerAddress
This commit is contained in:
@@ -336,9 +336,9 @@ int SecureSocketImpl::completeHandshake()
|
|||||||
void SecureSocketImpl::verifyPeerCertificate()
|
void SecureSocketImpl::verifyPeerCertificate()
|
||||||
{
|
{
|
||||||
if (_peerHostName.empty())
|
if (_peerHostName.empty())
|
||||||
_peerHostName = _pSocket->peerAddress().host().toString();
|
verifyPeerCertificate(_pSocket->peerAddress().host().toString());
|
||||||
|
else
|
||||||
verifyPeerCertificate(_peerHostName);
|
verifyPeerCertificate(_peerHostName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user