【发布时间】:2015-11-19 06:07:06
【问题描述】:
在工作中,我在代理服务器后面,并已将 vagrant 配置为通过 vagrant-proxyconf 插件使用它。效果很好,没有问题或抱怨。
Vagrant.configure(2) do |config|
if Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = "http://proxy.server.com:8080"
config.proxy.https = "http://proxy.server.com:8080"
config.proxy.no_proxy = "localhost, 127.0.0.1"
else
raise Vagrant::Errors::VagrantError.new, "Plugin missing: vagrant-proxyconf"
end
我遇到的问题是当我把电脑带回家做一些工作时。有没有办法轻松关闭代理设置?
【问题讨论】:
标签: proxy vagrant vagrant-windows