From 3f2dd2ce81d7ec663b4a9ad3ed68f3f113e630c9 Mon Sep 17 00:00:00 2001 From: zxl hhyccc <45259624+zxlhhyccc@users.noreply.github.com> Date: Sun, 24 Nov 2024 00:25:33 +0800 Subject: [PATCH] luci-app-ssr-plus: Fix `Xray` old configuration does not run. --- luci-app-ssr-plus/root/etc/uci-defaults/luci-ssr-plus | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/luci-app-ssr-plus/root/etc/uci-defaults/luci-ssr-plus b/luci-app-ssr-plus/root/etc/uci-defaults/luci-ssr-plus index 64751cf4d7a..5b203d77a0a 100755 --- a/luci-app-ssr-plus/root/etc/uci-defaults/luci-ssr-plus +++ b/luci-app-ssr-plus/root/etc/uci-defaults/luci-ssr-plus @@ -14,6 +14,12 @@ uci -q batch <<-EOF >/dev/null set firewall.shadowsocksr.path=/var/etc/shadowsocksr.include set firewall.shadowsocksr.reload=1 commit firewall + + delete shadowsocksr.@global_xray_fragment[0] + add shadowsocksr global_xray_fragment + set shadowsocksr.@global_xray_fragment[0].fragment='0' + set shadowsocksr.@global_xray_fragment[0].noise='0' + commit shadowsocksr EOF rm -rf /etc/config/shadowsocksr-opkg /etc/ssrplus/*opkg