From ff722142bfc9d7df19409059e5d8289573e1db49 Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Fri, 9 Jun 2023 14:53:36 +0500 Subject: [PATCH] SSL support on Unix Socket reinstated --- lib/MySQL_Monitor.cpp | 2 +- lib/mysql_connection.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index 118c69764..01a0df613 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -1501,7 +1501,7 @@ __exit_set_wait_timeout: bool MySQL_Monitor_State_Data::create_new_connection() { mysql=mysql_init(NULL); assert(mysql); - if (use_ssl && port) { + if (use_ssl) { mysql_ssl_set(mysql, mysql_thread___ssl_p2s_key, mysql_thread___ssl_p2s_cert, diff --git a/lib/mysql_connection.cpp b/lib/mysql_connection.cpp index 1f15cc80e..9e2bfe5bf 100644 --- a/lib/mysql_connection.cpp +++ b/lib/mysql_connection.cpp @@ -709,7 +709,7 @@ void MySQL_Connection::connect_start() { } mysql_options4(mysql, MYSQL_OPT_CONNECT_ATTR_ADD, "mysql_bug_102266", "Avoid MySQL bug https://bugs.mysql.com/bug.php?id=102266 , https://github.com/sysown/proxysql/issues/3276"); } - if (parent->use_ssl && parent->port) { + if (parent->use_ssl) { mysql_ssl_set(mysql, mysql_thread___ssl_p2s_key, mysql_thread___ssl_p2s_cert,