Skip to content

Commit 71cc2c9

Browse files
authored
Merge pull request #745 from cyberdelia/ssl-verify
Allow to skip SSL verification
2 parents a29d81c + 25f1f70 commit 71cc2c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/redis/connection/ruby.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,10 @@ def self.connect(host, port, timeout, ssl_params)
267267
ssl_sock = new(tcp_sock, ctx)
268268
ssl_sock.hostname = host
269269
ssl_sock.connect
270-
ssl_sock.post_connection_check(host)
270+
271+
unless ctx.verify_mode == OpenSSL::SSL::VERIFY_NONE
272+
ssl_sock.post_connection_check(host)
273+
end
271274

272275
ssl_sock
273276
end

0 commit comments

Comments
 (0)