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:
Tom Scanlan 2016-01-20 15:55:28 -05:00
parent 57afddc43b
commit 661b6a4813
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ module VagrantPlugins
proxy = nil
proxy ||= ENV["HTTPS_PROXY"] || ENV["https_proxy"]
proxy ||= ENV["HTTP_PROXY"] || ENV["http_proxy"]
RestClient.proxy = proxy
response = RestClient::Request.execute(
method: :post,