diff options
author | Jeffrey J McCune <jeff@northstarlabs.net> | 2007-11-24 20:26:52 -0500 |
---|---|---|
committer | Jeffrey J McCune <jeff@northstarlabs.net> | 2007-11-24 20:26:52 -0500 |
commit | 36c947ecae1b0082cf535dc691891b6cd7bf2c51 (patch) | |
tree | 619cf7da6334dfc51a1595487fff60e222b4b88a /lib | |
parent | 7eb09abebb91a567b081a651fce179acfadfb7c0 (diff) | |
download | puppet-36c947ecae1b0082cf535dc691891b6cd7bf2c51.tar.gz puppet-36c947ecae1b0082cf535dc691891b6cd7bf2c51.tar.xz puppet-36c947ecae1b0082cf535dc691891b6cd7bf2c51.zip |
Fix #896 - Always disable DNS checking of certificate when making https connections.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/network/client.rb | 6 | ||||
-rw-r--r-- | lib/puppet/network/xmlrpc/client.rb | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/puppet/network/client.rb b/lib/puppet/network/client.rb index fa48ebfb5..52431e227 100644 --- a/lib/puppet/network/client.rb +++ b/lib/puppet/network/client.rb @@ -19,6 +19,12 @@ class Net::HTTP false end end + + # JJM: This is a "backport" of sorts to older ruby versions which + # do not have this accessor. See #896 for more information. + unless Net::HTTP.instance_methods.include? "enable_post_connection_check" + attr_accessor :enable_post_connection_check + end end # The base class for all of the clients. Many clients just directly diff --git a/lib/puppet/network/xmlrpc/client.rb b/lib/puppet/network/xmlrpc/client.rb index 39f149aa8..371648b61 100644 --- a/lib/puppet/network/xmlrpc/client.rb +++ b/lib/puppet/network/xmlrpc/client.rb @@ -147,6 +147,7 @@ module Puppet::Network @http.cert = client.cert @http.verify_mode = OpenSSL::SSL::VERIFY_PEER @http.key = client.key + @http.enable_post_connection_check = false end end |