summaryrefslogtreecommitdiff
path: root/internal/dns/header.go
diff options
context:
space:
mode:
authorradhitya <alif@radhitya.org>2026-07-06 19:16:57 +0700
committerradhitya <alif@radhitya.org>2026-07-06 19:16:57 +0700
commit3a194f1705b2e56c04fbe868d9edf2c226e77975 (patch)
tree8ad0061ab1e01d13ad120d8988bcf0b34532ee58 /internal/dns/header.go
parent94bd5eae2983654bcff960d5c5f408ebfe9eba25 (diff)
recursive modemad
Diffstat (limited to 'internal/dns/header.go')
-rw-r--r--internal/dns/header.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/dns/header.go b/internal/dns/header.go
index 0f462a8..eafe89f 100644
--- a/internal/dns/header.go
+++ b/internal/dns/header.go
@@ -47,7 +47,7 @@ func (h *Header) SetZ(v uint8) { h.Flags = (h.Flags &^ (0x7 << 4)) | ((uint1
func (h *Header) SetAD(v bool) { h.set(0x0020, v) }
func (h *Header) SetCD(v bool) { h.set(0x0010, v) }
func (h *Header) SetRCode(v uint8) { h.Flags = (h.Flags &^ 0xF) | (uint16(v) & 0xF) }
-func (h *Header) Rcode() uint8 { return uint8(h.Flags & 0xF) }
+func (h *Header) Rcode() uint8 { return uint8(h.Flags & 0xF) }
func (h *Header) set(mask uint16, v bool) {
if v {
h.Flags |= mask