Skip to content

Commit

Permalink
Update stun_bt_lucky.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Oniicyan authored Aug 4, 2024
1 parent 7af851d commit 8c56577
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stun_bt_lucky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@ EOF
fw4 -q reload
else
nft delete chain ip STUN BTTR_NOFT 2>/dev/null
uci -q delete firewall.${OWNNAME}_noft && uci commit firewall && fw4 -q reload
rm /usr/share/nftables.d/table-pre/$OWNNAME.nft 2>/dev/null && fw4 -q reload
rm /tmp/*_noft.sh 2>/dev/null
for SECTION in $(uci show firewall | grep _noft= | awk -F = '{print$1}'); do
uci -q delete $SECTION
uci commit firewall
done
fi

# 判断脚本运行的环境,选择 DNAT 方式
Expand Down

0 comments on commit 8c56577

Please sign in to comment.