From 9107b7f21f64f14317cd4c37d6ae15c78bfbdb27 Mon Sep 17 00:00:00 2001 From: pegasusot Date: Tue, 15 Oct 2024 04:04:57 -0300 Subject: [PATCH] Update variable and comment --- src/database/database.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/database/database.cpp b/src/database/database.cpp index 58412cc3a0c..934197fe8f9 100644 --- a/src/database/database.cpp +++ b/src/database/database.cpp @@ -42,8 +42,9 @@ bool Database::connect(const std::string* host, const std::string* user, const s bool reconnect = true; mysql_options(handle, MYSQL_OPT_RECONNECT, &reconnect); - uint8_t ssl_disabled = 0; - mysql_options(handle, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, &ssl_disabled); + // remove ssl verification + bool ssl_enabled = false; + mysql_options(handle, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, &ssl_enabled); // connects to database if (!mysql_real_connect(handle, host->c_str(), user->c_str(), password->c_str(), database->c_str(), port, sock->c_str(), 0)) {