mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +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
|
#if USE_SSL
|
||||||
socket = std::make_unique<Poco::Net::SecureStreamSocket>();
|
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
|
#else
|
||||||
throw Exception{"tcp_secure protocol is disabled because poco library was built without NetSSL support.", ErrorCodes::SUPPORT_IS_DISABLED};
|
throw Exception{"tcp_secure protocol is disabled because poco library was built without NetSSL support.", ErrorCodes::SUPPORT_IS_DISABLED};
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user