Skip to content

Commit

Permalink
Avoid verbose warning when using Net::POP3 with SSL
Browse files Browse the repository at this point in the history
Patch from Jos Kamphorst.

Fixes [Bug #14822]
  • Loading branch information
jeremyevans committed Jun 20, 2019
1 parent 9335657 commit 4a5e07d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/net/pop.rb
Expand Up @@ -549,6 +549,7 @@ def do_start(account, password) # :nodoc:
context = OpenSSL::SSL::SSLContext.new
context.set_params(@ssl_params)
s = OpenSSL::SSL::SSLSocket.new(s, context)
s.hostname = @address
s.sync_close = true
ssl_socket_connect(s, @open_timeout)
if context.verify_mode != OpenSSL::SSL::VERIFY_NONE
Expand Down

0 comments on commit 4a5e07d

Please sign in to comment.