Skip to content

Commit 31a56d6

Browse files
authored
Merge commit from fork
Verify hostname by default
2 parents 80d37ce + 96444ea commit 31a56d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/openssl/ssl.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SSLContext
2020
DEFAULT_PARAMS = { # :nodoc:
2121
:min_version => OpenSSL::SSL::TLS1_VERSION,
2222
:verify_mode => OpenSSL::SSL::VERIFY_PEER,
23-
:verify_hostname => nil, # TODO => true needs JRuby support to call verify_certificate_identity
23+
:verify_hostname => true,
2424
:options => OpenSSL::SSL::OP_ALL | OpenSSL::SSL::OP_NO_COMPRESSION
2525
}
2626

0 commit comments

Comments
 (0)