chore: 添加tag no_doq 编译不含doq版本, 仅减少1.5MB(macOS-arm64)

This commit is contained in:
gVisor bot 2022-06-03 18:09:08 +08:00
parent fa6c28e4e4
commit 9ccc89ad95
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,5 @@
//go:build !no_doq
package dns
import (

10
dns/no_doq.go Normal file
View file

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