XrayR-project / XrayR

A Xray backend framework that can easily support many panels. 一个基于Xray的后端框架,支持V2ay,Trojan,Shadowsocks协议,极易扩展,支持多面板对接
https://xrayr-project.github.io/XrayR-doc/
Mozilla Public License 2.0
2.13k stars 844 forks source link

V2board 添加 SS2022 报错 #159

Closed mercury7720 closed 1 year ago

mercury7720 commented 1 year ago

添加 SS 选择加密算法为 2022-blake3-aes-256-gcm 后 XrayR 会抛出错误 panic: runtime error: slice bounds out of range [:32] with length 16 并停止运行。

https://github.com/XrayR-project/XrayR/blob/master/service/controller/userbuilder.go#L94 修改为 user.Passwd 并重新编译后可正常添加和运行。

pocketW commented 1 year ago

Thanks for noticing, fixed at b09f37144726933d9cd70daf5b26654e8674b53d