mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-07-25 00:13:09 +00:00
~修复容器劫持开关失效的bug
This commit is contained in:
@@ -625,6 +625,8 @@ set_firewall_vm() {
|
|||||||
common_success
|
common_success
|
||||||
else
|
else
|
||||||
msg_alert "\033[33m$VM_NO_NET_DETECTED\033[0m"
|
msg_alert "\033[33m$VM_NO_NET_DETECTED\033[0m"
|
||||||
|
set_firewall_vm
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
;;
|
;;
|
||||||
@@ -639,16 +641,12 @@ set_firewall_vm() {
|
|||||||
3)
|
3)
|
||||||
vm_redir=OFF
|
vm_redir=OFF
|
||||||
vm_ipv4=''
|
vm_ipv4=''
|
||||||
common_success
|
|
||||||
;;
|
|
||||||
*) ;;
|
|
||||||
esac
|
|
||||||
case "$num" in
|
|
||||||
1-3)
|
|
||||||
setconfig vm_redir "$vm_redir"
|
|
||||||
setconfig vm_ipv4 "'$vm_ipv4'"
|
|
||||||
;;
|
;;
|
||||||
|
*) return ;;
|
||||||
esac
|
esac
|
||||||
|
common_success
|
||||||
|
setconfig vm_redir "$vm_redir"
|
||||||
|
setconfig vm_ipv4 "'$vm_ipv4'"
|
||||||
}
|
}
|
||||||
|
|
||||||
# ipv6设置
|
# ipv6设置
|
||||||
|
|||||||
Reference in New Issue
Block a user