From 4a5e07d8e17a0f62810f983114a88cb1011f971b Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 20 Jun 2019 10:22:01 -0700 Subject: Avoid verbose warning when using Net::POP3 with SSL Patch from Jos Kamphorst. Fixes [Bug #14822] --- lib/net/pop.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/net') 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 -- cgit v1.2.3