-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Description
你正在使用哪个版本的 V2Ray?
windows 10 X64
V2Ray 5.41.0
你的使用场景是什么?
想使用VM+HY2模式
你看到的异常现象是什么?
V5 格式配置文件中 有使用 geoip.dat geosite.dat 文件,在配置文件中写绝对路径、相对路径 测试 配置文件 都报错无法找到 geosite.dat 文件。
D:\v2rayN\bin\v2fly_v5 (v2ray.exe 文件目录)
D:\v2rayN\JSON5 (config.json 文件目录)
D:\v2rayN\bin (bin目录)
以上三个目录中都放置有 geoip.dat geosite.dat 这两个文件
你期待看到的正常表现是怎样的?
请附上你的配置
服务端配置:
// 在这里附上服务器端配置文件客户端配置:
"router": {
"domainStrategy": "IpIfNonMatch",
"rule": [
{
"tag": "proxy",
"domainMatcher": "mph",
"geoDomain": [
{
"code": "google",
"filePath": "geosite.dat"
},
{
"code": "tld-!cn",
"filePath": "geosite.dat"
}
]
},
{
"tag": "proxy",
"domainMatcher": "mph",
"geoip": [
{
"code": "google",
"filePath": "geoip.dat"
},
{
"code": "telegram",
"filePath": "geoip.dat"
},
{
"code": "cn",
"filePath": "geoip.dat",
"inverseMatch": true
}
]
}
],
"balancingRule": [
{
"tag": "ShellPersonal",
"outbound_selector": [
"shellpersonal_"
],
"strategy": "random",
"fallbackTag": "proxy"
},
{
"tag": "PersonalShell",
"outbound_selector": [
"personalshell_"
],
"strategy": "random",
"fallbackTag": "proxy"
},
{
"tag": "UDAOUT",
"outbound_selector": [
"UDA_"
],
"strategy": "leastload"
},
{
"tag": "balancerout",
"outbound_selector": [
"balancer_"
],
"strategy": "leastping"
}
]
},请附上出错时软件输出的错误日志
服务器端错误日志:
// 在这里附上服务器端日志客户端错误日志:
都是用
D:\v2rayN\bin\v2fly_v5>v2ray.exe test -c D:\v2rayN\JSON5\81.json -format jsonv5
进行测试配置文件
不使用路径时,报错如下:
V2Ray 5.41.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.24.2 windows/amd64)
A unified platform for anti-censorship.
2025/12/19 12:59:30 [Debug] app/log: Logger started
Test failed: main/commands: failed to create server > app/router: unable to load geodomain > infra/conf/geodata/standard: list not found in geosite.dat: category-httpdns
使用绝对路径 "D:\\v2rayN\\bin\\geosite.dat" 报错如下:
V2Ray 5.41.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.24.2 windows/amd64)
A unified platform for anti-censorship.
Test failed: main/commands: failed to create server > app/router: unable to load geodomain > infra/conf/geodata/standard: failed to open file: D:\v2rayN\bin\geosite.dat > open D:\v2rayN\bin\v2fly_v5\D:\v2rayN\bin\geosite.dat: The filename, directory name, or volume label syntax is incorrect.
使用相对路径 "..\\geosite.dat" 报错如下:
V2Ray 5.41.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.24.2 windows/amd64)
A unified platform for anti-censorship.
2025/12/19 11:56:05 [Debug] app/log: Logger started
Test failed: main/commands: failed to create server > app/router: unable to load geodomain > infra/conf/geodata/standard: list not found in ../geosite.dat: category-httpdns请附上访问日志
// 在这里附上服务器端日志其它相关的配置文件(如 Nginx)和相关日志
如果 V2Ray 无法启动,请附上 --test 命令的输出
如果 V2Ray 服务运行异常,请附上 journal 日志
Metadata
Metadata
Assignees
Labels
No labels