feat: RFC-8427 #171

Merged
sam merged 16 commits from RFC-8427 into master 2022-12-27 20:07:09 +00:00
Showing only changes of commit 53f89ab107 - Show all commits

View file

@ -179,7 +179,7 @@ func (message *Message) ParseOpt(rcode int, rr dns.OPT) (ret EDNS0, err error) {
for i := uint32(1); i <= 0x7FFF; i <<= 1 {
if rr.Hdr.Ttl&i != 0 {
ret.Flags = append(ret.Flags, fmt.Sprintf("FLAG%d", i))
ret.Flags = append(ret.Flags, fmt.Sprintf("BIT%d", i))
}
}