diff --git a/Sources/MySQLKit/MySQLDatabase.swift b/Sources/MySQLKit/MySQLDatabase.swift index fb2c1258..4b2b4c41 100644 --- a/Sources/MySQLKit/MySQLDatabase.swift +++ b/Sources/MySQLKit/MySQLDatabase.swift @@ -28,10 +28,10 @@ public struct MySQLConfiguration { } let tlsConfiguration: TLSConfiguration? - if url.query == "ssl=true" || url.scheme == "mysqls" { - tlsConfiguration = .forClient() - } else { + if url.query == "ssl=false" { tlsConfiguration = nil + } else { + tlsConfiguration = .forClient() } self.init(