Merge pull request #3088 from weaveworks/issues/3054-honour-no-dns-in-proxy

If DNS server is off then disable proxy DNS registration
This commit is contained in:
Bryan Boreham authored and GitHub committed 2017-08-18 14:10:28 +01:00
commit 089a993299
1 file changed
+3
+3
View File
@@ -254,6 +254,9 @@ func main() {
var proxy *weaveproxy.Proxy
var err error
if proxyConfig.Enabled {
if noDNS {
proxyConfig.WithoutDNS = true
}
// Start Weave Proxy:
proxy, err = weaveproxy.NewProxy(*proxyConfig)
if err != nil {