DNS 模块整体移除,改用系统 DNS + sniffer
- 删除 dns 段,让 Windows/路由器 DNS 接管,避免节点域名解析受 mihomo DNS 配置影响 - 保留 sniffer 从 TLS SNI/HTTP Host/QUIC 嗅域名,保证基于域名的分流照常生效 - 代理流量在境外节点自行解析国外域名,本地污染无所谓 via [HAPI](https://hapi.run) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-Authored-By: HAPI <noreply@hapi.run>
This commit is contained in:
@@ -5,16 +5,17 @@ mode: rule
|
||||
log-level: info
|
||||
external-controller: '127.0.0.1:9090'
|
||||
|
||||
dns:
|
||||
sniffer:
|
||||
enable: true
|
||||
listen: '127.0.0.1:9053'
|
||||
default-nameserver:
|
||||
- 223.5.5.5
|
||||
- 223.6.6.6
|
||||
- 119.29.29.29
|
||||
enhanced-mode: fake-ip
|
||||
fake-ip-range: 198.18.0.1/16
|
||||
nameserver:
|
||||
- 'https://223.5.5.5/dns-query'
|
||||
- 'https://223.6.6.6/dns-query'
|
||||
- 'https://doh.pub/dns-query'
|
||||
override-destination: true
|
||||
sniff:
|
||||
HTTP:
|
||||
ports: [80, 8080-8880]
|
||||
override-destination: true
|
||||
TLS:
|
||||
ports: [443, 8443]
|
||||
QUIC:
|
||||
ports: [443, 8443]
|
||||
skip-domain:
|
||||
- 'Mijia Cloud'
|
||||
- '+.push.apple.com'
|
||||
|
||||
Reference in New Issue
Block a user