From bc4c31e48ba667c576209f848ac33586f05f629b Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Tue, 15 Aug 2017 13:39:00 +0000 Subject: [PATCH] If DNS server is off then disable proxy DNS registration --- prog/weaver/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prog/weaver/main.go b/prog/weaver/main.go index ab455cab..47d4889d 100644 --- a/prog/weaver/main.go +++ b/prog/weaver/main.go @@ -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 {