Browse Source

The problem of starting node twice is solved

Mattraks 5 years ago
parent
commit
d1fd588a21
1 changed files with 2 additions and 2 deletions
  1. 2 2
      luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/servers.lua

+ 2 - 2
luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/servers.lua

@@ -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