Fix DNS route suffix matching

This commit is contained in:
世界
2026-08-30 17:41:43 +08:00
parent 5d424ea2ac
commit ee0ff1c4a2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ func (t *DNSTransport) PreferredDomain(domain string) bool {
return true
}
for suffix := range routes {
if strings.HasSuffix(domain, suffix) {
if mDNS.IsSubDomain(suffix, domain) {
return true
}
}