From f3132727ae614e9620423dd0a82f0c3d3f1828a0 Mon Sep 17 00:00:00 2001 From: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com> Date: Thu, 18 Apr 2024 23:45:56 +0800 Subject: [PATCH] luci-app-ssr-plus: fix typo and master branch cannot run issue --- luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua b/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua index 3b91739dc32..cd1b2070dbe 100644 --- a/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua +++ b/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua @@ -168,5 +168,10 @@ if is_finded("chinadns-ng") then end end +m.apply_on_parse = true +m.on_after_apply = function(self,map) + luci.sys.call("/etc/init.d/shadowsocksr restart >/dev/null 2>&1 &") +end + return m