未验证 提交 8eff4742 编写于 作者: F filimonov 提交者: GitHub

Update Connection.cpp

上级 75ba096e
...@@ -73,6 +73,7 @@ void Connection::connect(const ConnectionTimeouts & timeouts) ...@@ -73,6 +73,7 @@ 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);
#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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册