mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Merge pull request #63178 from ClickHouse/backport/24.3/63122
Backport #63122 to 24.3: Set server name for SSL handshake in MongoDB engine
This commit is contained in:
commit
d2708667d8
@ -42,6 +42,8 @@ Poco::Net::StreamSocket StorageMongoDBSocketFactory::createSecureSocket(const st
|
|||||||
Poco::Net::SocketAddress address(host, port);
|
Poco::Net::SocketAddress address(host, port);
|
||||||
Poco::Net::SecureStreamSocket socket;
|
Poco::Net::SecureStreamSocket socket;
|
||||||
|
|
||||||
|
socket.setPeerHostName(host);
|
||||||
|
|
||||||
socket.connect(address, connectTimeout);
|
socket.connect(address, connectTimeout);
|
||||||
|
|
||||||
return socket;
|
return socket;
|
||||||
|
Loading…
Reference in New Issue
Block a user