diff options
Diffstat (limited to 'lib/net/smtp.rb')
-rw-r--r-- | lib/net/smtp.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index 58cce32a71..84790450bc 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -578,6 +578,9 @@ module Net logging "TLS connection started" s.sync_close = true s.connect + if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE + s.post_connection_check(@address) + end s end |