Merge pull request #1781 from weaveworks/1754-no-with-dns
Remove --with-dns option from proxy
This commit is contained in:
commit
ce18509aa7
4 files changed
+1
-17
No files matched your search
@@ -18,7 +18,6 @@ import (
|
||||
docker "github.com/fsouza/go-dockerclient"
|
||||
. "github.com/weaveworks/weave/common"
|
||||
weavedocker "github.com/weaveworks/weave/common/docker"
|
||||
"github.com/weaveworks/weave/nameserver"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -56,7 +55,6 @@ type Config struct {
|
||||
NoRewriteHosts bool
|
||||
TLSConfig TLSConfig
|
||||
Version string
|
||||
WithDNS bool
|
||||
WithoutDNS bool
|
||||
NoMulticastRoute bool
|
||||
DockerHost string
|
||||
@@ -519,10 +517,6 @@ func (proxy *Proxy) getDNSDomain() (domain string) {
|
||||
return ""
|
||||
}
|
||||
|
||||
if proxy.WithDNS {
|
||||
domain = nameserver.DefaultDomain
|
||||
}
|
||||
|
||||
weaveContainer, err := proxy.client.InspectContainer("weave")
|
||||
var weaveIP string
|
||||
if err == nil && weaveContainer.NetworkSettings != nil {
|
||||
|
||||
Reference in new issue
Block a user