[proxy] Add --without-dns flag, and change meaning of --with-dns flag

This commit is contained in:
Paul Bellamy committed 2015-06-16 14:07:40 +01:00
1 parent a1cb5b16a6
commit 8873d69b77
6 files changed
+58 -18

No files matched your search

+2 -1
View File
@@ -37,6 +37,7 @@ type Config struct {
TLSConfig TLSConfig
Version string
WithDNS bool
WithoutDNS bool
WithIPAM bool
}
@@ -61,7 +62,7 @@ func NewProxy(c Config) (*Proxy, error) {
},
}
if p.WithDNS {
if !p.WithoutDNS {
dockerBridgeIP, err := callWeave("docker-bridge-ip")
if err != nil {
return nil, err