shorten it even more

This commit is contained in:
Miek Gieben 2011-10-06 14:47:49 +02:00
parent 96cbd9420c
commit 794ad60217
1 changed files with 12 additions and 4 deletions

View File

@ -179,12 +179,20 @@ func shortMsg(in *dns.Msg) *dns.Msg {
func shortRR(r dns.RR) dns.RR {
switch t := r.(type) {
case *dns.RR_DNSKEY:
t.PublicKey = "( ... )"
case *dns.RR_RRSIG:
t.Signature = "( ... )"
case *dns.RR_NSEC3:
t.Salt = "-" // nobody cares
case *dns.RR_DS:
t.Digest = "..."
case *dns.RR_DNSKEY:
t.PublicKey = "..."
case *dns.RR_RRSIG:
t.Signature = "..."
t.Inception = 0 // For easy grepping
t.Expiration = 0
case *dns.RR_NSEC3:
if len(t.TypeBitMap) > 5 {
t.TypeBitMap = t.TypeBitMap[1:5]
}
}
return r
}