Merge pull request #773 from kingsey/dev

修复 missing ] 报错
This commit is contained in:
juewuy 2024-09-21 12:52:35 +08:00 committed by GitHub
commit 27539f1cc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1348,7 +1348,7 @@ start_nftables() { #nftables配置总入口
start_nft_route prerouting_vm prerouting nat -100
}
#屏蔽QUIC
[ "$quic_rj" = '已启用' -a "$lan_proxy" = true && {
[ "$quic_rj" = '已启用' -a "$lan_proxy" = true ] && {
[ "$redir_mod" = "Tproxy模式" ] && {
nft add chain inet shellcrash quic_rj { type filter hook input priority 0 \; }
[ -n "$CN_IP" ] && nft add rule inet shellcrash quic_rj ip daddr {$CN_IP} return