[rubygems/rubygems] Resolv needs vendoring too
https://github.com/rubygems/rubygems/commit/cdfc6923e4
This commit is contained in:
parent
f188a41afe
commit
20d99a2f5f
@ -22,7 +22,7 @@
|
||||
|
||||
require_relative '../../../net-protocol/lib/net/protocol'
|
||||
require 'uri'
|
||||
require 'resolv'
|
||||
require_relative '../../../resolv/lib/resolv'
|
||||
autoload :OpenSSL, 'openssl'
|
||||
|
||||
module Gem::Net #:nodoc:
|
||||
@ -1652,7 +1652,7 @@ module Gem::Net #:nodoc:
|
||||
|
||||
# Server Name Indication (SNI) RFC 3546/6066
|
||||
case @address
|
||||
when Resolv::IPv4::Regex, Resolv::IPv6::Regex
|
||||
when Gem::Resolv::IPv4::Regex, Gem::Resolv::IPv6::Regex
|
||||
# don't set SNI, as IP addresses in SNI is not valid
|
||||
# per RFC 6066, section 3.
|
||||
|
||||
|
2910
lib/rubygems/resolv/lib/resolv.rb
Normal file
2910
lib/rubygems/resolv/lib/resolv.rb
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user