Last active
September 21, 2018 16:59
-
-
Save p-mongo/aba62ce8c214aa57320504cf6a30350f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/mongo/socket/ssl.rb b/lib/mongo/socket/ssl.rb | |
index a1ef29bc..1b8fd287 100644 | |
--- a/lib/mongo/socket/ssl.rb | |
+++ b/lib/mongo/socket/ssl.rb | |
@@ -56,7 +56,7 @@ module Mongo | |
Timeout.timeout(connect_timeout, Error::SocketTimeoutError) do | |
handle_errors { @tcp_socket.connect(::Socket.pack_sockaddr_in(port, host)) } | |
@socket = OpenSSL::SSL::SSLSocket.new(@tcp_socket, context) | |
- @socket.hostname = @host_name unless BSON::Environment.jruby? | |
+ @socket.hostname = @host_name | |
@socket.sync_close = true | |
handle_errors { @socket.connect } | |
verify_certificate!(@socket) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment