This commit is contained in:
juewuy
2026-01-08 10:10:58 +08:00
parent 6d1b2a0a26
commit 8ef30efa31
7 changed files with 33 additions and 22 deletions

View File

@@ -304,7 +304,7 @@ set_fw_filter(){ #流量过滤
;;
1)
echo "-----------------------------------------------"
if [ -n "$(pidof CrashCore)" ]; then
if [ -n "$(pidof CrashCore)" ] && [ "$firewall_mod" = 'iptables' ]; then
read -p "切换时将停止服务,是否继续?(1/0) > " res
[ "$res" = 1 ] && "$CRASHDIR"/start.sh stop && set_common_ports
else