Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5 格式下无法识别定义配置文件夹路径 #2951

Open
nie11kun opened this issue Mar 27, 2024 · 1 comment
Open

v5 格式下无法识别定义配置文件夹路径 #2951

nie11kun opened this issue Mar 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nie11kun
Copy link

你正在使用哪个版本的 V2Ray?

v5.15.1

你的使用场景是什么?

配置文件放在 conf.d 文件夹内

你看到的异常现象是什么?

选择 v5 格式就会提示目录下不存在 .v5.json 文件,其实是有的

./v2ray test -d conf.d -format jsonv5
V2Ray 5.15.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.22.1 windows/amd64)
A unified platform for anti-censorship.
2024/03/27 16:01:22 Using confdir from arg: conf.d
no config file found with extension: [.v5.json .v5.jsonc]

选择 v4 格式就没问题,会提示 config 文件格式不对,因为是按照 v5 格式做的

./v2ray test -d conf.d
V2Ray 5.15.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.22.1 windows/amd64)
A unified platform for anti-censorship.
2024/03/27 16:07:52 Using confdir from arg: conf.d
Test failed: main/commands: failed to load config: [conf.d\111.v5.json] > infra/conf/serial: failed to read config file at line 1 char 18 > json: cannot unmarshal object into Go struct field LogConfig.log.access of type string

你期待看到的正常表现是怎样的?

不知道该如何定义配置文件目录

请附上你的配置

客户端配置:

{
    "log": {
        "access": {
            "type": "File",// "None" | "Console" | "File"
            "path": "C:\\Users\\marco\\Application\\v2ray\\log\\access.log",
            "level": "Warning"//  "Debug" | "Info" | "Warning" | "Error" | "None"
        },
        "error": {
            "type": "File",
            "path": "C:\\Users\\marco\\Application\\v2ray\\log\\error.log",
            "level": "Warning"
        }
    }
}

请附上出错时软件输出的错误日志

客户端错误日志:

V2Ray 5.15.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.22.1 windows/amd64)
A unified platform for anti-censorship.
2024/03/27 16:10:10 Using confdir from arg: conf.d
no config file found with extension: [.v5.json .v5.jsonc]

请附上访问日志

其它相关的配置文件(如 Nginx)和相关日志

如果 V2Ray 无法启动,请附上 --test 命令的输出

如果 V2Ray 服务运行异常,请附上 journal 日志

@AkinoKaede AkinoKaede added the bug Something isn't working label Apr 5, 2024
@frankli0324
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants