Skip to content

[bug] 在最新的 V2ray 版本中,其配置文件里的 AlterID 应被置 0 #262

@KerriSommers

Description

@KerriSommers

与 bug 有关的页面 / related page

???.md
https://guide.v2fly.org/basics/vmess.html#%E9%85%8D%E7%BD%AE

bug 描述 / description of the bug

在此描述出现的问题。
在使用了白话文提供的配置文件(其 AlterID 的值为 64 )后,未能成功实现客户端和服务端的连接。
我先后尝试了 V2rayN , V2rayNG 两种在PC和移动设备具有代表性的客户端,但均未能起效。
其中在最新版本的V2rayN客户端出现如下报错信息:

Failed to process outbound traffic > proxy/vmess/outbound: connection ends > proxy/vmess/outbound: failed to read header > proxy/vmess/encoding: failed to read response header > EOF

在经过了Google的搜索后,我在(https://www.v2fly.org/config/protocols/vmess.html#outboundconfigurationobject)搜索到了如下内容 “在 v4.28.1 版本后,客户端 AlterID 设置为 0 代表启用 VMessAEAD ;服务端为自动适配,可同时兼容启用和未开启 VMessAEAD 的客户端。”
所以我将服务器连同客户端的 Config.Json 文件的 AlterID 字段的值改成0,之后服务端和客户端均成功建立了连接。
我不大确定是否只有我一个人遇到了这种问题。但是我认为如果这种现象具有普遍性,那么应将白话文教程中给出配置文件的 alterID 字段改为0

复现步骤 / how we can reproduce

服务端 (V4.44.0) 在一台运行Ubuntu 20LTS的服务器上。采用 https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh 脚本安装
客户端(V2rayN V4.34 包含 V2ray_Core)在下载https://github.com/2dust/v2rayN/releases/download/4.34/v2rayN.zip后直接通过GUI配置。
如果将AlterID改为64后则客户端无法使用。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpull request wantedno obvious way to fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions