Repository navigation
|
respect-rules 文档表示强烈不建议和 我猜一下是不是当节点不支持 UDP 的时候会走 direct |
Answered by
Dv2Corn
Nov 1, 2026
Replies: 1 comment
|
你的猜测正好相反:节点不支持 UDP 时不会改走 direct,而是直接报错。 开 if !proxyAdapter.SupportUDP() {
return nil, fmt.Errorf("proxy adapter [%s] UDP is not supported", proxyAdapter.Name())
}不建议同时用的原因:
所以要么开 respect-rules 不开 prefer-h3,要么只给直连的 DNS 上游用 H3(例如 |
0 replies
Answer selected by
cxzlw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你的猜测正好相反:节点不支持 UDP 时不会改走 direct,而是直接报错。
开
respect-rules后,连 DNS 上游的连接按规则选出口(tunnel/dns_dialer.go#L155-L160)。prefer-h3会让 DoH 尝试 HTTP/3,也就是 QUIC,走 UDP(dns/doh.go#L75-L77)。UDP 经代理时:(dns_dialer.go#L175-L177)
不建议同时用的原因:
所以要么开 respect-rules 不开 prefer-h3,要么只给直连的 DNS 上游用 H3(例如
https://dns.alidns.com/dns-query#DIRECT&h3=true,#后面的参数用&连接)。