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 # 更新保存穿透信息