mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
(cherry picked from commit e0e3f9cc4148beb0e567e7cbfbf93c62f9b85dd5)
This commit is contained in:
parent
1cc6332536
commit
3335f2b6c7
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user