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/puppet/network/client.rb | |
| 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/puppet/network/client.rb')
| -rw-r--r-- | lib/puppet/network/client.rb | 6 |
1 files changed, 6 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 |
