From 1298d2f8b6f5557eec764fa5cb82eeae5974cb45 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Fri, 3 Jun 2022 18:09:08 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0tag=20no=5Fdoq=20?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E4=B8=8D=E5=90=ABdoq=E7=89=88=E6=9C=AC,=20?= =?UTF-8?q?=E4=BB=85=E5=87=8F=E5=B0=911.5MB(macOS-arm64)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dns/doq.go | 2 ++ dns/no_doq.go | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 dns/no_doq.go diff --git a/dns/doq.go b/dns/doq.go index 7682a21e..7baeb700 100644 --- a/dns/doq.go +++ b/dns/doq.go @@ -1,3 +1,5 @@ +//go:build !no_doq + package dns import ( diff --git a/dns/no_doq.go b/dns/no_doq.go new file mode 100644 index 00000000..b1d0a485 --- /dev/null +++ b/dns/no_doq.go @@ -0,0 +1,10 @@ +//go:build no_doq + +package dns + +import "github.com/Dreamacro/clash/log" + +func newDOQ(r *Resolver, addr, proxyAdapter string) dnsClient { + log.Fatalln("unsupported feature on the build") + return nil +}