mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
@@ -36,6 +36,7 @@ func NewRecorder(w dns.ResponseWriter) *Recorder {
|
||||
// WriteMsg records the status code and calls the
|
||||
// underlying ResponseWriter's WriteMsg method.
|
||||
func (r *Recorder) WriteMsg(res *dns.Msg) error {
|
||||
r.Rcode = res.Rcode
|
||||
// We may get called multiple times (axfr for instance).
|
||||
// Save the last message, but add the sizes.
|
||||
r.Len += res.Len()
|
||||
|
||||
Reference in New Issue
Block a user