mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Update Connection.cpp
This commit is contained in:
parent
8eff47420b
commit
178d8e9b75
@ -73,7 +73,8 @@ void Connection::connect(const ConnectionTimeouts & timeouts)
|
||||
{
|
||||
#if USE_SSL
|
||||
socket = std::make_unique<Poco::Net::SecureStreamSocket>();
|
||||
socket->setPeerHostName(host);
|
||||
auto secure_socket = static_cast<Poco::Net::SecureStreamSocket*>(socket.get());
|
||||
secure_socket->setPeerHostName(host);
|
||||
#else
|
||||
throw Exception{"tcp_secure protocol is disabled because poco library was built without NetSSL support.", ErrorCodes::SUPPORT_IS_DISABLED};
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user