mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Add Scrub function
This function will make the message fit for the client's buffer, or set the TC bit.
This commit is contained in:
@@ -72,7 +72,7 @@ func (e Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (i
|
||||
}
|
||||
|
||||
m = dedup(m)
|
||||
|
||||
m, _ = state.Scrub(m)
|
||||
state.W.WriteMsg(m)
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user