v2ray-core
v2ray-core copied to clipboard
建议为sniffing增加route_only选项或判断destOverride的域名是否有效以增强对Tor的兼容性
你正在使用哪个版本的 V2Ray?
版本无关。现有的版本都不支持route_only选项。
你的使用场景是什么?
在开启了sniffing和destOverride的情况下使用Tor。
你看到的异常现象是什么?
无法连接到Tor网络。原因是开启了destOverride,这与Tor不兼容。如果能像xray-core对sniffing增加route_only支持,即可在不关闭destOverride的情况下开启route_only来解决此问题。另见:#https://github.com/2dust/v2rayN/issues/5099 。或者像sing-box那样增加一个判断,如果域名无效(如 Tor),destOverride将不生效,就不用搞route_only了。
你期待看到的正常表现是怎样的?
在不关闭sniffing和destOverride的前提下连接到Tor网络。
请附上你的配置
服务端配置:
无关。
客户端配置:
{
"log": {
"access": "",
"error": "",
"loglevel": "warning"
},
"inbounds": [
{
"tag": "socks",
"port": 10808,
"listen": "0.0.0.0",
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"routeOnly": false
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
},
{
"tag": "http",
"port": 10809,
"listen": "0.0.0.0",
"protocol": "http",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"routeOnly": false
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
},
{
"tag": "api",
"port": 10813,
"listen": "127.0.0.1",
"protocol": "dokodemo-door",
"settings": {
"udp": false,
"address": "127.0.0.1",
"allowTransparent": false
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "shadowsocks",
"settings": {
"servers": [
{
"address": "example.com",
"method": "chacha20-ietf-poly1305",
"ota": false,
"password": "anonymous",
"port": 10800,
"level": 1
}
]
},
"streamSettings": {
"network": "tcp"
},
"mux": {
"enabled": false,
"concurrency": -1
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"stats": {},
"api": {
"tag": "api",
"services": [
"StatsService"
]
},
"policy": {
"system": {
"statsOutboundUplink": true,
"statsOutboundDownlink": true
}
},
"dns": {
"hosts": {
"dns.google": "8.8.8.8",
"proxy.example.com": "127.0.0.1"
},
"servers": [
{
"address": "223.5.5.5",
"domains": [
"geosite:cn",
"geosite:geolocation-cn"
],
"expectIPs": [
"geoip:cn"
]
},
"1.1.1.1",
"8.8.8.8",
"https://dns.google/dns-query"
]
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"domainMatcher": "mph",
"rules": [
{
"type": "field",
"inboundTag": [
"api"
],
"outboundTag": "api"
},
{
"type": "field",
"port": "0-65535",
"outboundTag": "proxy"
}
]
}
}
请附上出错时软件输出的错误日志
服务器端错误日志:
无关。
客户端错误日志:
未查看debug日志。
请附上访问日志
主要是连接Tor节点的日志。
其它相关的配置文件(如 Nginx)和相关日志
无。
如果 V2Ray 无法启动,请附上 --test
命令的输出
无。
如果 V2Ray 服务运行异常,请附上 journal 日志
无。