From 1e56703d4b3816f1e805fcab6ac8fb61c441a2ad Mon Sep 17 00:00:00 2001 From: bol-van Date: Mon, 11 Aug 2025 20:43:07 +0300 Subject: [PATCH] replace spaces with tab --- init.d/custom.d.examples.linux/50-stun4all | 6 +++--- init.d/custom.d.examples.linux/50-wg4all | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/init.d/custom.d.examples.linux/50-stun4all b/init.d/custom.d.examples.linux/50-stun4all index 3b64a3c..0062e58 100644 --- a/init.d/custom.d.examples.linux/50-stun4all +++ b/init.d/custom.d.examples.linux/50-stun4all @@ -10,7 +10,7 @@ zapret_custom_daemons() { # $1 - 1 - add, 0 - stop - local opt="--qnum=$QNUM_STUN4ALL $NFQWS_OPT_DESYNC_STUN" + local opt="--qnum=$QNUM_STUN4ALL $NFQWS_OPT_DESYNC_STUN" do_nfqws $1 $DNUM_STUN4ALL "$opt" } # size = 156 (8 udp header + 148 payload) && payload starts with 0x01000000 @@ -18,13 +18,13 @@ zapret_custom_firewall() { # $1 - 1 - run, 0 - stop - local f='-p udp -m length --length 28: -m u32 --u32' + local f='-p udp -m length --length 28: -m u32 --u32' fw_nfqws_post $1 "$f 0>>22&0x3C@8&0xC0000003=0&&0>>22&0x3C@12=0x2112A442" "$f 48&0xC0000003=0 && 52=0x2112A442" $QNUM_STUN4ALL } zapret_custom_firewall_nft() { # stop logic is not required - local f="udp length >= 28 @ih,0,2 0 @ih,30,2 0 @ih,32,32 0x2112A442" + local f="udp length >= 28 @ih,0,2 0 @ih,30,2 0 @ih,32,32 0x2112A442" nft_fw_nfqws_post "$f" "$f" $QNUM_STUN4ALL } diff --git a/init.d/custom.d.examples.linux/50-wg4all b/init.d/custom.d.examples.linux/50-wg4all index 825a21a..c70ea29 100644 --- a/init.d/custom.d.examples.linux/50-wg4all +++ b/init.d/custom.d.examples.linux/50-wg4all @@ -10,7 +10,7 @@ zapret_custom_daemons() { # $1 - 1 - add, 0 - stop - local opt="--qnum=$QNUM_WG4ALL $NFQWS_OPT_DESYNC_WG" + local opt="--qnum=$QNUM_WG4ALL $NFQWS_OPT_DESYNC_WG" do_nfqws $1 $DNUM_WG4ALL "$opt" } # size = 156 (8 udp header + 148 payload) && payload starts with 0x01000000 @@ -18,13 +18,13 @@ zapret_custom_firewall() { # $1 - 1 - run, 0 - stop - local f='-p udp -m u32 --u32' + local f='-p udp -m u32 --u32' fw_nfqws_post $1 "$f 0>>22&0x3C@4>>16=0x9c&&0>>22&0x3C@8=0x01000000" "$f 44>>16=0x9c&&48=0x01000000" $QNUM_WG4ALL } zapret_custom_firewall_nft() { # stop logic is not required - local f="udp length 156 @ih,0,32 0x01000000" + local f="udp length 156 @ih,0,32 0x01000000" nft_fw_nfqws_post "$f" "$f" $QNUM_WG4ALL }