v2ray-core icon indicating copy to clipboard operation
v2ray-core copied to clipboard

v5.0.3 log level不能设置为None,同时建议首字母小写

Open yomnxkcs opened this issue 3 years ago • 2 comments

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

os: win10 v2ray-core: x64 v5.0.3

你的使用场景是什么?

使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频

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

如题。此外建议log.error.type以及level的值采用首字母小写,和streamSettings transportSettings等大小写风格保持一致。

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

core正常启动

请附上你的配置

服务端配置:

// 在这里附上服务器端配置文件

客户端配置:

{
  "log": {
    "error": {
      "type": "Console",
      "level": "None"
    }
  },
  "inbounds": [
    {
      "tag": "agentin",
      "port": 1080,
      "listen": "127.0.0.1",
      "protocol": "socks",
      "settings": {}
    }
  ],
  "outbounds": [
    {
      "tag": "agentout",
      "protocol": "vmess",
      "settings": {
        "address": "1.2.3.4",
        "port": 80,
        "uuid": "f76d54b7-ba77-426a-8665-707fafdf5462"
      },
      "streamSettings": {
        "transport": "ws",
        "transportSettings": {},
        "security": "none",
        "securitySettings": {}
      }
    }
  ]
}

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

服务器端错误日志:

// 在这里附上服务器端日志

客户端错误日志:

V2Ray 5.0.3 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.17.6 windows/amd64)
A unified platform for anti-censorship.
2022/02/09 10:01:58 Using config from STDIN
Failed to start: main/commands: failed to load config > infra/conf/v5cfg: unable to build config > common/registry: unable to parse json content > unknown value "\"None\"" for enum v2ray.core.common.log.Severity

请附上访问日志

// 在这里附上服务器端日志

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

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

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

yomnxkcs avatar Feb 09 '22 02:02 yomnxkcs

其实后半句才是发这个issue的目的。

yomnxkcs avatar Feb 11 '22 01:02 yomnxkcs

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Aug 08 '22 02:08 github-actions[bot]