소스 검색

luci-app-ssr-plus: Stop run not delete the persistence rule file.

zxl hhyccc 1 주 전
부모
커밋
8e471dd877
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      luci-app-ssr-plus/root/etc/init.d/shadowsocksr

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

@@ -1514,10 +1514,10 @@ stop() {
 	set_lock
 	if command -v nft >/dev/null 2>&1; then
 		/usr/bin/ssr-rules -K
-		local CLEANUP_PERSISTENCE="$(uci_get_by_type global global_server nil)"
-		if [ "$CLEANUP_PERSISTENCE" == "nil" ]; then
-			/usr/bin/ssr-rules -X
-		fi
+		#local CLEANUP_PERSISTENCE="$(uci_get_by_type global global_server nil)"
+		#if [ "$CLEANUP_PERSISTENCE" == "nil" ]; then
+		#	/usr/bin/ssr-rules -X
+		#fi
 	fi
 	/usr/bin/ssr-rules -f
 	local srulecount=0