mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-12-01 14:18:36 +00:00
Use domain resolver for ECH config queries
When ECH is enabled without a static config, the HTTPS record query for the ECH config list went through the DNS rules instead of the domain resolver, and the migration of outbound DNS rule items to the domain resolver left no way to select a DNS server for it. A rule rejecting HTTPS records refused the query, and a default DNS server detoured through the same outbound waited for its own connection until the query timed out. Send the query to the domain resolver of the dial fields, then the default domain resolver, then the only DNS server, and fail it when none of them is available. DNS servers must set their own domain resolver for it, as they do for a domain server address.
This commit is contained in:
@@ -190,7 +190,7 @@ Setting this option directly to a string is equivalent to setting `server` of th
|
||||
| Outbound/Endpoints | Effected domains |
|
||||
|--------------------|--------------------------|
|
||||
| `direct` | Domain in request |
|
||||
| others | Domain in server address |
|
||||
| others | Domain in server address, domain of the ECH config query |
|
||||
|
||||
#### network_strategy
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ TCP keep alive 间隔。
|
||||
| 出站/端点 | 受影响的域名 |
|
||||
|----------------|---------------------------|
|
||||
| `direct` | 请求中的域名 |
|
||||
| 其他类型 | 服务器地址中的域名 |
|
||||
| 其他类型 | 服务器地址中的域名、ECH 配置查询的域名 |
|
||||
|
||||
#### network_strategy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user