Sfoglia il codice sorgente

restart serivce after subscribe fail

coolsnowwolf 5 anni fa
parent
commit
7de26c0400

+ 1 - 1
luci-app-ssr-plus/Makefile

@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=luci-app-ssr-plus
 PKG_VERSION:=178
-PKG_RELEASE:=3
+PKG_RELEASE:=5
 
 include $(INCLUDE_DIR)/package.mk
 

+ 4 - 0
luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua

@@ -377,6 +377,10 @@ local execute = function()
 	do
 		if next(nodeResult) == nil then
 			log("更新失败,没有可用的节点信息")
+			if proxy == '0' then
+				luci.sys.init.start(name)
+				log('订阅失败, 恢复服务')
+			end
 			return
 		end
 		local add, del = 0, 0