Closed kierankihn closed 7 months ago
从日志来看,并没有向ipv6地址发起的连接,而是ipv4 timeout
mode: rule
mixed-port: 7897
allow-lan: true
log-level: debug
ipv6: true
external-controller: 127.0.0.1:9097
secret: ''
global-client-fingerprint: edge
geox-url:
geoip: https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geoip.dat
geosite: https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geosite.dat
mmdb: https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/Country.mmdb
profile:
store-selected: true
store-fake-ip: true
tun:
enable: true
stack: mixed
dns-hijack:
- any:53
auto-route: true
device: Mihomo
auto-detect-interface: true
strict-route: false
mtu: 1500
c:
type: http
behavior: classical
interval: 86400
dns:
enable: true
prefer-h3: false
listen: 0.0.0.0:53
ipv6: false
default-nameserver:
- 127.0.0.1:6553
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- '*.lan'
- localhost.ptlogin2.qq.com
- +.stun.*.*
- +.stun.*.*.*
- +.stun.*.*.*.*
- +.stun.*.*.*.*.*
- '*.n.n.srv.nintendo.net'
- +.stun.playstation.net
- xbox.*.*.microsoft.com
- '*.*.xboxlive.com'
- WORKGROUP
- '*.wecheat.cn'
- '*.msftncsi.com'
- '*.msftconnecttest.com'
nameserver:
- https://8.8.8.8/dns-query#DNS&h3=false
- https://1.1.1.1/dns-query#DNS&h3=false
- https://94.140.14.140/dns-query#DNS&h3=false
nameserver-policy:
'*.msftncsi.com,*.msftconnecttest.com':
- https://8.8.8.8/dns-query#DNS&h3=false
- https://1.1.1.1/dns-query#DNS&h3=false
- https://94.140.14.140/dns-query#DNS&h3=false
geosite:private,apple-cn,google-cn,cn,category-games@cn:
- tls://1.12.12.12:853#h3=false
- https://223.5.5.5/dns-query#h3=false
- tls://120.53.53.53#h3=false
use-hosts: true
fallback: []
time="2024-07-07T15:14:17.7059739Z" level=debug msg="[DNS] resolve api.bilibili.com from tls://120.53.53.53:853"
time="2024-07-07T15:14:17.7059739Z" level=debug msg="[DNS] resolve api.bilibili.com from tls://1.12.12.12:853"
time="2024-07-07T15:14:17.7059739Z" level=debug msg="[DNS] resolve api.bilibili.com from tls://1.12.12.12:853"
time="2024-07-07T15:14:17.7059739Z" level=debug msg="[DNS] resolve api.bilibili.com from tls://120.53.53.53:853"
time="2024-07-07T15:14:17.7059739Z" level=debug msg="[DNS] resolve api.bilibili.com from https://223.5.5.5:443/dns-query"
time="2024-07-07T15:14:17.7059739Z" level=debug msg="creating a new http client"
time="2024-07-07T15:14:17.7059739Z" level=debug msg="[https://223.5.5.5:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-07-07T15:14:17.7059739Z" level=debug msg="[DNS] resolve api.bilibili.com from https://223.5.5.5:443/dns-query"
time="2024-07-07T15:14:17.7687813Z" level=debug msg="[DNS] api.bilibili.com --> [110.40.30.34 119.84.174.67 110.40.30.33 110.40.30.32 119.84.174.68 119.84.174.66] A from https://223.5.5.5:443/dns-query"
time="2024-07-07T15:14:17.7687813Z" level=debug msg="[DNS] api.bilibili.com --> [240e:bf:b800:4300:1::15 240e:d9:a600:834::12 240e:bf:b800:4300:1::14 240e:930:c200:209::34 240e:bf:b800:4300:1::13 240e:d9:a600:834::14 240e:bf:b800:4300:1::12 240e:d9:a600:834::13] AAAA from https://223.5.5.5:443/dns-query"
time="2024-07-07T15:14:17.775413Z" level=info msg="[TCP] [fdfe:dcba:9876::1]:4891 --> api.bilibili.com:443 match GeoSite(cn) using 🎯 全球直连[DIRECT]"
在 openclash 中我也出现了这种情况,我使用 smartdns 设置禁止返回AAAA记录来避免这种情况。
Verify steps
Mihomo version
1.18.3
What OS are you seeing the problem on?
Windows
Mihomo config
Mihomo log
Description
在 dns 配置中配置了
ipv6: false
之后仍然解析 ipv6 并且使用 ipv6 访问然而我本地网络并不支持 ipv6,所以无法成功连接