Skip to content

Commit

Permalink
Update variable and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pudimtibia committed Oct 15, 2024
1 parent f5be228 commit 9107b7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/database/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 9107b7f

Please sign in to comment.