Removing confusing variable from getDNSDomain, just return "" when disabled
This commit is contained in:
1 parent
3e4d8a3ffe
commit
547c9e7f5a
3 files changed
+9
-7
No files matched your search
@@ -29,7 +29,7 @@ func (i *startContainerInterceptor) InterceptRequest(r *http.Request) error {
|
||||
}
|
||||
|
||||
i.proxy.addWeaveWaitVolume(hostConfig)
|
||||
if dnsDomain, withDNS := i.proxy.getDNSDomain(); withDNS {
|
||||
if dnsDomain := i.proxy.getDNSDomain(); dnsDomain != "" {
|
||||
if err := i.proxy.setWeaveDNS(hostConfig, container.Config.Hostname, dnsDomain); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user