fix login behind proxy (#6898)
we're using rest_client 1.6.9, which doesn't use proxy passed in to the RestClient::Request.execute. Must set RestClient.proxy instead
This commit is contained in:
parent
57afddc43b
commit
661b6a4813
|
@ -50,6 +50,7 @@ module VagrantPlugins
|
||||||
proxy = nil
|
proxy = nil
|
||||||
proxy ||= ENV["HTTPS_PROXY"] || ENV["https_proxy"]
|
proxy ||= ENV["HTTPS_PROXY"] || ENV["https_proxy"]
|
||||||
proxy ||= ENV["HTTP_PROXY"] || ENV["http_proxy"]
|
proxy ||= ENV["HTTP_PROXY"] || ENV["http_proxy"]
|
||||||
|
RestClient.proxy = proxy
|
||||||
|
|
||||||
response = RestClient::Request.execute(
|
response = RestClient::Request.execute(
|
||||||
method: :post,
|
method: :post,
|
||||||
|
|
Loading…
Reference in New Issue