解决 v2ray invalid user: VMessAEAD is enforced and a non VMessAEAD connection is received.

机场新手先看以下两篇:

有些同学发现自己的V2突然用不了了或新装(更新)的V2ray后无法正常使用

登录VPS查看日志发现有大量错误日志,具体错误信息如下

rejected  github.com/v2fly/v2ray-core/v4/proxy/vmess/encoding: failed to drain connection DrainSize = 2575 8 7 > github.com/v2fly/v2ray-core/v4/proxy/vmess/encoding: 
invalid user: VMessAEAD is enforced and a non VMessAEAD connection is received. 
You can still disable this security feature with environment variable v2ray.vmess.aead.forced = false . 
You will not be able to enable legacy header workaround in the future.

解决办法

修改配置文件

vi /lib/systemd/system/v2ray.service

将 Execstart 这一行改为

ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json

重启v2ray

systemctl daemon-reload
systemctl restart v2ray

其他文章:

赞 (1)

评论 0

文章评论已关闭!