Browse Source

Merge pull request #62 from Mattraks/Fixes

Fix kcptun stop bug
fw876 5 years ago
parent
commit
d4850a367f

+ 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:=5
+PKG_RELEASE:=6
 
 include $(INCLUDE_DIR)/package.mk
 

+ 1 - 1
luci-app-ssr-plus/root/etc/init.d/shadowsocksr

@@ -746,7 +746,7 @@ stop() {
 	ps -w | grep -v "grep" | grep ssr-monitor | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1 &
 	ps -w | grep -v "grep" | grep "sleep $(uci_get_by_type global switch_time)s" | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1 &
 	ps -w | grep -v "grep" | grep "sleep 30s" | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1 &
-	killall -q -9 ss-redir ss-local obfs-local ssr-redir ssr-local ssr-server v2ray v2ray-plugin trojan microsocks ipt2socks dns2socks redsocks2 pdnsd
+	killall -q -9 ss-redir ss-local obfs-local ssr-redir ssr-local ssr-server v2ray v2ray-plugin trojan microsocks ipt2socks dns2socks redsocks2 pdnsd kcptun-client
 	rm -f /var/lock/ssr-chinaipset.lock /var/lock/ssr-monitor.lock
 	if [ -f "/tmp/dnsmasq.d/dnsmasq-ssr.conf" ]; then
 		rm -rf /tmp/dnsmasq.d/dnsmasq-ssr.conf /tmp/dnsmasq.ssr /tmp/dnsmasq.oversea

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

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