mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-31 16:04:27 +02:00
Merge pull request #1157 from erl987/develop
Fixing a bug in the NetSSL_Win module (Host name verification failed error)
This commit is contained in:
commit
7a8e0d12d5
@ -702,7 +702,7 @@ void SecureSocketImpl::connectSSL(bool completeHandshake)
|
||||
|
||||
if (_peerHostName.empty())
|
||||
{
|
||||
_peerHostName = _pSocket->address().host().toString();
|
||||
_peerHostName = _pSocket->peerAddress().host().toString();
|
||||
}
|
||||
|
||||
initClientContext();
|
||||
@ -1522,7 +1522,7 @@ void SecureSocketImpl::stateIllegal()
|
||||
|
||||
void SecureSocketImpl::stateConnected()
|
||||
{
|
||||
_peerHostName = _pSocket->address().host().toString();
|
||||
_peerHostName = _pSocket->peerAddress().host().toString();
|
||||
initClientContext();
|
||||
performInitialClientHandshake();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user