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

B #6100: Add support to https_proxy (#2467)

(cherry picked from commit e0e3f9cc4148beb0e567e7cbfbf93c62f9b85dd5)
This commit is contained in:
Frederick Borges 2023-01-30 11:54:26 +01:00 committed by Tino Vázquez
parent 1cc6332536
commit 3335f2b6c7
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -190,8 +190,9 @@ set :port, $conf[:port]
set :sockets, []
if (proxy = $conf[:proxy])
ENV['http_proxy'] = proxy
ENV['HTTP_PROXY'] = proxy
env_proxy = proxy.start_with?('https') ? 'https_proxy' : 'http_proxy'
ENV[env_proxy] = proxy
ENV[env_proxy.upcase] = proxy
end
if (no_proxy = $conf[:no_proxy])