mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Support SNI
This fixes connecting using TLS 1.3 to imap.gmail.com [Fix GH-2077] [Feature #15594] From: Marc-Antoine Perennou <Marc-Antoine@Perennou.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
73f891f1a5
commit
e553d94f01
1 changed files with 1 additions and 0 deletions
|
@ -1530,6 +1530,7 @@ module Net
|
|||
end
|
||||
@sock = SSLSocket.new(@sock, context)
|
||||
@sock.sync_close = true
|
||||
@sock.hostname = @host if @sock.respond_to? :hostname=
|
||||
ssl_socket_connect(@sock, @open_timeout)
|
||||
if context.verify_mode != VERIFY_NONE
|
||||
@sock.post_connection_check(@host)
|
||||
|
|
Loading…
Reference in a new issue