luci-app-ssr-plus: sync with upstream source

This commit is contained in:
CN_SZTL 2020-09-06 12:07:23 +08:00
parent abd2f77a7e
commit 54a9c4f584
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -70,7 +70,7 @@ o.write = function()
end)
uci:save("shadowsocksr")
uci:commit("shadowsocksr")
luci.sys.exec("/etc/init.d/shadowsocksr restart")
luci.sys.exec("/etc/init.d/shadowsocksr restart &")
luci.http.redirect(luci.dispatcher.build_url("admin", "services", "shadowsocksr", "servers"))
return
end
@ -119,7 +119,7 @@ node.write = function(self, section)
uci:set("shadowsocksr", '@global[0]', 'global_server', section)
uci:save("shadowsocksr")
uci:commit("shadowsocksr")
luci.sys.exec("/etc/init.d/shadowsocksr restart")
luci.sys.exec("/etc/init.d/shadowsocksr restart &")
luci.http.redirect(luci.dispatcher.build_url("admin", "services", "shadowsocksr", "client"))
end