From: jos@... Date: 2018-06-04T16:24:44+00:00 Subject: [ruby-core:87390] [Ruby trunk Bug#14822] [POP3/SSL] net/protocol.rb:44: warning: verify_hostname requires hostname to be set Issue #14822 has been reported by hkamphor (Jos Kamphorst). ---------------------------------------- Bug #14822: [POP3/SSL] net/protocol.rb:44: warning: verify_hostname requires hostname to be set https://bugs.ruby-lang.org/issues/14822 * Author: hkamphor (Jos Kamphorst) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- When enabling SSL with POP3 like this: ~~~ ruby 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-------------------------------- pop_ssl_verify_hostname.patch (881 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: