From 2186e510258af6805c6f99ba98315c8fe7dbd4d2 Mon Sep 17 00:00:00 2001 From: Oniicyan <130678414+Oniicyan@users.noreply.github.com> Date: Thu, 7 Nov 2024 19:09:34 +0800 Subject: [PATCH] Update stun_bt_lucky.sh --- stun_bt_lucky.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stun_bt_lucky.sh b/stun_bt_lucky.sh index 2a563ca..764bb75 100644 --- a/stun_bt_lucky.sh +++ b/stun_bt_lucky.sh @@ -22,7 +22,7 @@ touch $STUNIFO OLDPORT=$(grep $L4PROTO $STUNIFO | awk -F ':| ' '{print$3}') if [ $WANPORT = "$OLDPORT" ]; then logger -st stun_bt The external port $WANPORT/$L4PROTO$([ -n "$IFNAME" ] && echo @$IFNAME) has not changed. - exit 0 + nft list table ip STUN 2>&1 | grep $(printf '0x%x' $WANPORT) >/dev/null && exit 0 fi # 更新保存穿透信息