If DNS server is off then disable proxy DNS registration

This commit is contained in:
Bryan Boreham committed 2017-08-18 10:25:10 +00:00
1 parent a6cd456f8b
commit bc4c31e48b
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 {