yichya / luci-app-xray

(Almost) full feature Xray client for OpenWrt
Mozilla Public License 2.0
543 stars 317 forks source link

fix: add ACL for version info #401

Closed denpamusic closed 3 months ago

denpamusic commented 3 months ago

Hi,

First of all, thank you very much for your amazing work on this project!

After updating to 3.4.1, I noticed, that the status page stopped working with PermissionError. Screenshot 2024-03-17 at 01-43-22 gateway - LuCI

I tracked it down to this line, where load() function tries to read /usr/share/xray/version.txt file with fs.read() but fails, due to this file missing in ACL for the status package.