mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/net-smtp] Add SNI support to net/smtp
https://github.com/ruby/net-smtp/commit/b706942392
This commit is contained in:
parent
141404e898
commit
f1d32010e6
1 changed files with 1 additions and 0 deletions
|
@ -600,6 +600,7 @@ module Net
|
|||
s = ssl_socket(s, @ssl_context)
|
||||
logging "TLS connection started"
|
||||
s.sync_close = true
|
||||
s.hostname = @address if s.respond_to? :hostname=
|
||||
ssl_socket_connect(s, @open_timeout)
|
||||
if @ssl_context.verify_mode && @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE
|
||||
s.post_connection_check(@address)
|
||||
|
|
Loading…
Add table
Reference in a new issue