-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
完整性要求
- 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- 我搜索了issues,没有发现已提出的类似问题。
版本
1.8.11描述
在使用xray 访问http3 的网站时 无法通过sniffer 得出域名
重现方式
{
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"domain": [
"www.baidu.com",
"www.taurusxin.com"
],
"outboundTag": "blackhole",
"inboundTag": [
"proxy2"
]
},
{
"type": "field",
"outboundTag": "direct",
"inboundTag": [
"proxy2"
]
}
]
},
"stats": {},
"inbounds": [
{
"port": 2809,
"protocol": "socks",
"listen": "127.0.0.1",
"settings": {
"auth": "password",
"accounts": [
{
"user": "ABC",
"pass": "ABC"
}
],
"udp": true
},
"tag": "proxy2",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {},
"tag": "direct"
},
{
"protocol":"Blackhole",
"tag" : "blackhole"
}
],
"log": {
"loglevel": "debug",
"dnsLog": true
}
}
以上是我的配置文件。
我使用的是netch源码进行的测试。 我把原本netch 启动xray的关掉。然后使他指向我手动启动的xray
我访问百度会出现连接已重置的页面。(因为我通过route把他转到了黑洞中)
我访问https://www.taurusxin.com/http3-enabled/时却可以正常访问
我也在日志中清晰的看到
2024/05/15 11:58:27 [Info] [773605411] app/dispatcher: sniffed domain: www.baidu.com
baidu 有sniffed成功
但是我访问www.taurusxin.com时
xray.log
文件是我的日志
有一行
udp:127.0.0.1:64005 accepted udp:61.170.88.242:443 [proxy2 -> direct]
我确信这就是http3 的流量记录
日志
No response