ruby-changes:55355
From: knu <ko1@a...>
Date: Mon, 15 Apr 2019 19:52:40 +0900 (JST)
Subject: [ruby-changes:55355] knu:r67563 (trunk): Support SNI (Reapplying r67488)
knu 2019-04-15 19:52:34 +0900 (Mon, 15 Apr 2019) New Revision: 67563 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67563 Log: Support SNI (Reapplying r67488) This fixes connecting using TLS 1.3 to imap.gmail.com [Fix GH-2077] [Feature #15594] From: Marc-Antoine Perennou <Marc-Antoine@P...> Modified files: trunk/lib/net/imap.rb Index: lib/net/imap.rb =================================================================== --- lib/net/imap.rb (revision 67562) +++ lib/net/imap.rb (revision 67563) @@ -1530,6 +1530,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/imap.rb#L1530 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/