diff --git a/stun_bt_lucky.sh b/stun_bt_lucky.sh index 5f5c60d..11ed05f 100644 --- a/stun_bt_lucky.sh +++ b/stun_bt_lucky.sh @@ -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)