Skip to content

Commit 57da949

Browse files
committed
Fix CA Validation fail on localhost
1 parent ff58424 commit 57da949

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

driver/mysql_connection.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -765,11 +765,6 @@ void MySQL_Connection::init(ConnectOptionsMap & properties)
765765

766766
#undef PROCESS_CONNSTR_OPTION
767767

768-
/* libmysql shouldn't think it is too smart */
769-
if (tcpProtocol(uri) && !uri.Host().compare(util::LOCALHOST)) {
770-
uri.setHost("127.0.0.1");
771-
}
772-
773768
// Throwing in case of wrong protocol
774769
#ifdef _WIN32
775770
if (uri.Protocol() == NativeAPI::PROTOCOL_SOCKET) {

0 commit comments

Comments
 (0)