nit: change flag to bit

this is in the RFC

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-12-27 18:07:20 +01:00
parent b9bf6bd8dc
commit 53f89ab107
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD

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))
}
}