diff --git a/prog/weaveproxy/main.go b/prog/weaveproxy/main.go index d634e22ad6..5b17199e72 100644 --- a/prog/weaveproxy/main.go +++ b/prog/weaveproxy/main.go @@ -21,6 +21,7 @@ func main() { justVersion bool logLevel = "info" c = proxy.Config{Image: "weaveworks/weaveexec"} + withDNS bool ) c.Version = version @@ -39,6 +40,7 @@ func main() { mflag.BoolVar(&c.TLSConfig.Enabled, []string{"#tls", "-tls"}, false, "Use TLS; implied by --tlsverify") mflag.StringVar(&c.TLSConfig.Key, []string{"#tlskey", "-tlskey"}, "", "Path to TLS key file") mflag.BoolVar(&c.TLSConfig.Verify, []string{"#tlsverify", "-tlsverify"}, false, "Use TLS and verify the remote") + mflag.BoolVar(&withDNS, []string{"#-with-dns", "#w"}, false, "option removed") mflag.BoolVar(&c.WithoutDNS, []string{"-without-dns"}, false, "instruct created containers to never use weaveDNS as their nameserver") mflag.BoolVar(&c.NoMulticastRoute, []string{"-no-multicast-route"}, false, "do not add a multicast route via the weave interface when attaching containers") mflag.Parse() @@ -57,6 +59,10 @@ func main() { Log.Infoln("weave proxy", version) Log.Infoln("Command line arguments:", strings.Join(os.Args[1:], " ")) + if withDNS { + Log.Warning("--with-dns option has been removed; DNS is on by default") + } + c.DockerHost = defaultDockerHost if dockerHost := os.Getenv("DOCKER_HOST"); dockerHost != "" { c.DockerHost = dockerHost diff --git a/weave b/weave index 8283f09758..c5bfa4148b 100755 --- a/weave +++ b/weave @@ -1803,6 +1803,9 @@ deprecation_warnings() { -no-default-ipam|--no-default-ipam) deprecation_warning $1 "--no-default-ipalloc" ;; + --with-dns) + echo "Warning: $1 has been removed; DNS is on by default" >&2 + ;; esac shift done