summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-06-20 10:22:01 -0700
committerJeremy Evans <code@jeremyevans.net>2019-06-20 10:22:01 -0700
commit4a5e07d8e17a0f62810f983114a88cb1011f971b (patch)
treed082d9f7405b6152c9394333d9257e39777fbc84 /lib
parent93356576fec17b1c7cafd56fc4a633776cb8169f (diff)
Avoid verbose warning when using Net::POP3 with SSL
Patch from Jos Kamphorst. Fixes [Bug #14822]
Diffstat (limited to 'lib')
-rw-r--r--lib/net/pop.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/net/pop.rb b/lib/net/pop.rb
index a6374cd78c..e295394b5c 100644
--- a/lib/net/pop.rb
+++ b/lib/net/pop.rb
@@ -549,6 +549,7 @@ module Net
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