Merge pull request #63122 from ClickHouse/fix_mongo_ssl

Set server name for SSL handshake in MongoDB engine
This commit is contained in:
Alexey Milovidov 2024-04-30 01:32:21 +02:00 committed by GitHub
commit b5a33d523b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;