summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/monkey_patches/net_http.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/monkey_patches/net_http.rb b/lib/chef/monkey_patches/net_http.rb
index 083db2216b..9c8044a9a7 100644
--- a/lib/chef/monkey_patches/net_http.rb
+++ b/lib/chef/monkey_patches/net_http.rb
@@ -42,6 +42,10 @@ if Net::HTTP.instance_methods.map {|m| m.to_s}.include?("proxy_uri")
# from -e:1:in `<main>'
#
# https://bugs.ruby-lang.org/issues/9129
+ #
+ # NOTE: This should be fixed in Ruby 2.2.0, and backported to Ruby 2.0 and
+ # 2.1 (not yet released so the version/patchlevel required isn't known
+ # yet).
Net::HTTP.new("::1", 80).proxy_uri
rescue URI::InvalidURIError
class Net::HTTP