~新增独立的容器/虚拟机代理开关,以解决代理失败的问题

~回退对singbox入站添加"domain_strategy":"prefer_ipv4"参数的改动
This commit is contained in:
juewuy
2024-08-25 20:48:41 +08:00
parent b8af49fcbe
commit e64bafeb04
3 changed files with 84 additions and 22 deletions

View File

@@ -2472,7 +2472,7 @@ testcommand(){
if [ "$firewall_mod" = "nftables" ];then
nft list table inet shellcrash
else
[ "$firewall_area" = 1 -o "$firewall_area" = 3 -o "$firewall_area" = 5 ] && {
[ "$firewall_area" = 1 -o "$firewall_area" = 3 -o "$firewall_area" = 5 -o "$vm_redir" = "已开启" ] && {
echo ----------------Redir+DNS---------------------
iptables -t nat -L PREROUTING --line-numbers
iptables -t nat -L shellcrash_dns --line-numbers
@@ -2509,6 +2509,11 @@ testcommand(){
}
}
}
[ "$vm_redir" = "已开启" ] && {
echo -------------vm-Redir-------------------
iptables -t nat -L shellcrash_vm --line-numbers
iptables -t nat -L shellcrash_vm_dns --line-numbers
}
fi
exit;
elif [ "$num" = 5 ]; then