If DNS server is off then disable proxy DNS registration
This commit is contained in:
1 parent
a6cd456f8b
commit
bc4c31e48b
1 file changed
+3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user