[client] Support wildcard DNS on iOS (#3979)

This commit is contained in:
Viktor Liu
2025-06-16 18:33:51 +02:00
committed by GitHub
parent bfa5c21d2d
commit 8df8c1012f
4 changed files with 35 additions and 9 deletions

View File

@@ -84,3 +84,10 @@ func (u *upstreamResolver) isLocalResolver(upstream string) bool {
}
return false
}
func GetClientPrivate(ip netip.Addr, interfaceName string, dialTimeout time.Duration) (*dns.Client, error) {
return &dns.Client{
Timeout: dialTimeout,
Net: "udp",
}, nil
}