lib/oxidized/source/http.rb in oxidized-0.18.0 vs lib/oxidized/source/http.rb in oxidized-0.19.0
- old
+ new
@@ -18,9 +18,10 @@
def load
nodes = []
uri = URI.parse(@cfg.url)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true if uri.scheme == 'https'
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE unless @cfg.secure
# map headers
headers = {}
@cfg.headers.each do |header, value|
headers[header] = value