Skip to content

Commit

Permalink
default to a tls config
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Dec 11, 2019
1 parent 70a5748 commit 3650732
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/MySQLKit/MySQLDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3650732

Please sign in to comment.