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 16, 2024
1 parent 35f5076 commit 991c87d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions stun_bt_lucky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,11 @@ SETDNAT() {
nft insert rule ip STUN DNAT $IIFNAME $L4PROTO dport $LANPORT counter redirect to :$APPPORT comment "$OWNNAME"
)

case $DNAT in
1)
2)
3)
4)
esac

case $DNAT in
1) METHOD='nft dnat' ;;
2) METHOD='nft redirect' ;;
3) METHOD='UPnP dnat' ;;
4) METHOD='UPnP redirect' ;;
2) METHOD='nft redirect' ;;
3) METHOD='UPnP dnat' ;;
4) METHOD='UPnP redirect' ;;
esac

echo -n nftables OK. $METHOD to $APPADDR:$APPPORT$([ -n "$IFNAME" ] && echo @$IFNAME)

0 comments on commit 991c87d

Please sign in to comment.