Skip to content

Commit 4083d02

Browse files
authored
Merge pull request #10 from scuml/SSL
SSL Fix
2 parents 6e685e0 + 84be9ab commit 4083d02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftRedis/RedisSSL.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ extension Redis {
2323
/// clientAllowsSelfSignedCertificates: true
2424
/// )
2525
/// - Parameter callback: callback function for on completion, NSError will be nil if successful.
26-
public func connect(host: String, port: Int32, sslConfig: SSLService.Configuration? = nil, callback: (NSError?) -> Void) {
27-
respHandle = RedisResp(host: host, port: port, sslConfig: sslConfig)
26+
public func connect(host: String, port: Int32, sslConfig: SSLService.Configuration? = nil, sslSkipVerification: Bool = false, callback: (NSError?) -> Void) {
27+
respHandle = RedisResp(host: host, port: port, sslConfig: sslConfig, sslSkipVerification: sslSkipVerification)
2828

2929
if respHandle?.status == .notConnected {
3030
callback(createError("Failed to connect to Redis server", code: 2))

0 commit comments

Comments
 (0)