Skip to content

Instantly share code, notes, and snippets.

@sonicintrusion
Created May 16, 2017 12:57
Show Gist options
  • Save sonicintrusion/e41cefdb62e8d26543facba1a6603402 to your computer and use it in GitHub Desktop.
Save sonicintrusion/e41cefdb62e8d26543facba1a6603402 to your computer and use it in GitHub Desktop.
.vagrant.d/Vagrantfile
Vagrant.configure(2) do |config|
if Vagrant.has_plugin?("vagrant-proxyconf")
if ENV['HTTP_PROXY']
config.proxy.http = ENV['HTTP_PROXY']
config.proxy.https = ENV['HTTPS_PROXY']
config.proxy.no_proxy = ENV['NO_PROXY']
else
config.proxy.http = ""
config.proxy.https = ""
config.proxy.no_proxy = ""
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment