From 53f89ab1074c20c1283e4dcffd9aff6f11defb6a Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Tue, 27 Dec 2022 18:07:20 +0100 Subject: [PATCH] nit: change flag to bit this is in the RFC Signed-off-by: Sam Therapy --- pkg/query/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/query/util.go b/pkg/query/util.go index 4df5e97..10e51fb 100644 --- a/pkg/query/util.go +++ b/pkg/query/util.go @@ -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)) } }