From 37f1d225c494f0c111e1fadeb3c4935006774484 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Thu, 24 Oct 2024 12:15:09 +0300 Subject: [PATCH] chore: format --- internal/dns/query.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/dns/query.go b/internal/dns/query.go index 433985a..9c9579f 100644 --- a/internal/dns/query.go +++ b/internal/dns/query.go @@ -129,6 +129,7 @@ func handleTXTRecord(q *dns.Question, m *dns.Msg, r *dns.Msg) { m.SetRcode(r, dns.RcodeNameError) return } + qNameWithoutPrefix, ok := strings.CutPrefix(qName, expectedPrefix) if !ok { m.SetRcode(r, dns.RcodeFormatError) -- 2.44.1