Actions
Bug #14822
closed[POP3/SSL] net/protocol.rb:44: warning: verify_hostname requires hostname to be set
Description
When enabling SSL with POP3 like this:
require 'net/pop'
Net::POP.enable_ssl
Net::POP3.start(...) |pop|
...
A warning like this will be generated:
net/protocol.rb:44: warning: verify_hostname requires hostname to be set
This happens because SSLContext default is :verify_hostname => true
.
The attached patch fixes this by setting the SSLSocket#hostname variable to the address which is given during Net::POP3.start.
Files
Actions
Like0
Like0Like0