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