Files
poco/NetSSL_Win
Andrew Slabko 8c85619d64 Prevent hostname being replaced with IP during handshake
Before the handshake is performed, SecureSocketImpl::stateClientConnected
overrides the peer hostname with its IP address, making it impossible to send
SNI during the handshake in SecureSocketImpl::stateClientHandshakeStart.

This behavior essentially breaks SNI and prevents the library from being used
with load balancers that rely on SNI to determine the destination host.

Everywhere else, the peer hostname is replaced by the IP address only when the
peer hostname is empty. That makes total sense; however, it seems like this
check was forgotten in SecureSocketImpl::stateClientConnected.
2025-10-01 22:31:04 +02:00
..
2022-07-07 04:18:20 -05:00
2024-11-16 21:54:16 +01:00
2023-11-04 23:11:38 +01:00
2020-01-11 12:45:39 +01:00