mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #937 from sanimej/compress
Set the compress flag for the responses from external DNS servers
This commit is contained in:
commit
edaf344a54
1 changed files with 1 additions and 0 deletions
|
@ -229,6 +229,7 @@ func (r *resolver) ServeDNS(w dns.ResponseWriter, query *dns.Msg) {
|
|||
|
||||
resp, _, err = c.Exchange(query, addr)
|
||||
if err == nil {
|
||||
resp.Compress = true
|
||||
break
|
||||
}
|
||||
log.Errorf("external resolution failed, %s", err)
|
||||
|
|
Loading…
Reference in a new issue