From 661b6a481349e9f91c08896082fe0e8591a1f95c Mon Sep 17 00:00:00 2001 From: Tom Scanlan Date: Wed, 20 Jan 2016 15:55:28 -0500 Subject: [PATCH] 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 --- plugins/commands/login/client.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/commands/login/client.rb b/plugins/commands/login/client.rb index fe8811935..c7dcdb4f6 100644 --- a/plugins/commands/login/client.rb +++ b/plugins/commands/login/client.rb @@ -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,