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 +}