From 33758dc4e5dc463c91f065250c6dda9ae1ccb463 Mon Sep 17 00:00:00 2001 From: odboy Date: Sun, 10 Nov 2024 19:39:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=B9=E6=8D=AE=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=BF=94=E5=9B=9E=E8=AE=B0=E5=BD=95=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/handler.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/handler.go b/core/handler.go index 981b5ba..e94bfab 100644 --- a/core/handler.go +++ b/core/handler.go @@ -28,14 +28,19 @@ func HandleDNSRequest(w dns.ResponseWriter, r *dns.Msg) { switch question.Qtype { case dns.TypeA: handleARecord(question, msg) + break case dns.TypeAAAA: handleAAAARecord(question, msg) + break case dns.TypeCNAME: handleCNAMERecord(question, msg) + break case dns.TypeMX: handleMXRecord(question, msg) + break case dns.TypeTXT: handleTXTRecord(question, msg) + break } } // 发送响应