This commit is contained in:
Alexey Milovidov 2018-03-16 07:49:00 +03:00
parent 50ae82d9fb
commit ed9517bb0b

View File

@ -387,8 +387,8 @@ private:
void connect()
{
auto encryption = config().getBool("ssl", false)
? Protocol::Encryption::Enable
: Protocol::Encryption::Disable;
? Protocol::Encryption::Enable
: Protocol::Encryption::Disable;
String host = config().getString("host", "localhost");
UInt16 port = config().getInt("port", config().getInt(static_cast<bool>(encryption) ? "tcp_ssl_port" : "tcp_port", static_cast<bool>(encryption) ? DBMS_DEFAULT_SECURE_PORT : DBMS_DEFAULT_PORT));