From 84be9abaad0da1dcc0dba9d34324eb5a871097f1 Mon Sep 17 00:00:00 2001 From: Stephen Mitchell Date: Mon, 29 Mar 2021 09:38:25 -0400 Subject: [PATCH] Update RedisSSL.swift --- Sources/SwiftRedis/RedisSSL.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftRedis/RedisSSL.swift b/Sources/SwiftRedis/RedisSSL.swift index af58543..76b5656 100644 --- a/Sources/SwiftRedis/RedisSSL.swift +++ b/Sources/SwiftRedis/RedisSSL.swift @@ -23,8 +23,8 @@ extension Redis { /// clientAllowsSelfSignedCertificates: true /// ) /// - Parameter callback: callback function for on completion, NSError will be nil if successful. - public func connect(host: String, port: Int32, sslConfig: SSLService.Configuration? = nil, callback: (NSError?) -> Void) { - respHandle = RedisResp(host: host, port: port, sslConfig: sslConfig) + public func connect(host: String, port: Int32, sslConfig: SSLService.Configuration? = nil, sslSkipVerification: Bool = false, callback: (NSError?) -> Void) { + respHandle = RedisResp(host: host, port: port, sslConfig: sslConfig, sslSkipVerification: sslSkipVerification) if respHandle?.status == .notConnected { callback(createError("Failed to connect to Redis server", code: 2))