1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
suyuan 2024-07-04 17:02:33 +08:00
parent 42f342c1bb
commit 60c4e33a2f
25 changed files with 291 additions and 258 deletions

View file

@ -56,7 +56,7 @@ else
fi
if [ -n "$(nft list set inet fw4 omr_dst_bypass_all_6 2>/dev/null)" ]; then
for ip in $hostip; do
nft add element inet fw4 omr_dst_bypass_all_6 { $ip } 2>&1 >/dev/null
nft add element inet fw4 omr_dst_bypass_all_6 { $ip } >/dev/null 2>&1
done
fi
if [ "$FASTTEST" = true ]; then
@ -72,7 +72,7 @@ else
fi
if [ -n "$(nft list set inet fw4 omr_dst_bypass_all_6 2>/dev/null)" ]; then
for ip in $hostip; do
nft delete element inet fw4 omr_dst_bypass_all_6 { $ip } 2>&1 >/dev/null
nft delete element inet fw4 omr_dst_bypass_all_6 { $ip } >/dev/null 2>&1
done
fi
/etc/init.d/sqm start $INTERFACE