Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2941 from weaveworks/remove-with-dns-flag
Browse files Browse the repository at this point in the history
Remove deprecated flag --with-dns.
  • Loading branch information
bboreham authored May 9, 2017
2 parents b46ccc0 + ce94e69 commit fc57e72
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions prog/weaveproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ func main() {
justVersion bool
logLevel = "info"
c proxy.Config
withDNS bool
)

c.Version = version
Expand All @@ -47,7 +46,6 @@ 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()
Expand All @@ -62,10 +60,6 @@ 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.Image = getenv("EXEC_IMAGE", "weaveworks/weaveexec")
c.DockerBridge = getenv("DOCKER_BRIDGE", "docker0")
c.DockerHost = getenv("DOCKER_HOST", "unix:///var/run/docker.sock")
Expand Down

0 comments on commit fc57e72

Please sign in to comment.