shorten it even more
This commit is contained in:
parent
96cbd9420c
commit
794ad60217
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue