Pass the WeaveDNS Domain into the proxy

instead of obtaining it via the http api
This commit is contained in:
Bryan Boreham committed 2018-01-29 15:55:36 +00:00
1 parent 86d2800b59
commit e7f30106c0
4 files changed
+7 -13

No files matched your search

+2 -2
View File
@@ -50,8 +50,8 @@ func (i *startContainerInterceptor) InterceptRequest(r *http.Request) error {
return err
}
}
if dnsDomain := i.proxy.getDNSDomain(); dnsDomain != "" {
if err := i.proxy.setWeaveDNS(hostConfig, container.Config.Hostname, dnsDomain); err != nil {
if !i.proxy.WithoutDNS {
if err := i.proxy.setWeaveDNS(hostConfig, container.Config.Hostname, i.proxy.DNSDomain); err != nil {
return err
}
}