1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #2668: Use https when monitoring marketplace

This commit is contained in:
Jan Orel 2018-12-20 09:30:12 +01:00 committed by Ruben S. Montero
parent bdaaf11c25
commit e582a12047

View File

@ -23,7 +23,7 @@ require 'base64'
require 'rexml/document'
class OneMarket
ONE_MARKET_URL = 'http://marketplace.opennebula.systems/'
ONE_MARKET_URL = 'https://marketplace.opennebula.systems/'
AGENT = 'Market Driver'
VERSION = File.dirname(__FILE__) + '/../../VERSION'
@ -51,7 +51,8 @@ class OneMarket
req['User-Agent'] = @agent
response = Net::HTTP.start(uri.hostname, uri.port, p_host, p_port) {|http|
response = Net::HTTP.start(uri.hostname, uri.port, p_host, p_port,
:use_ssl => uri.scheme == 'https') { |http|
http.request(req)
}