~优化定时任务中周日的输入提示并增加容错机制
~修复iptables-tproxy模式禁用quic失败的问题
~修复会将tun所用网段加入局域网代理的bug
This commit is contained in:
juewuy
2024-07-06 15:41:53 +08:00
parent 390f47148a
commit 91a0866b9e
3 changed files with 13 additions and 12 deletions

View File

@@ -724,7 +724,7 @@ setipv6(){ #ipv6设置
}
setfirewall(){ #防火墙设置
set_cust_host_ipv4(){
[ -z "$replace_default_host_ipv4" ] && replace_default_host_ipv4="未启"
[ -z "$replace_default_host_ipv4" ] && replace_default_host_ipv4="未启"
echo -----------------------------------------------
echo -e "当前默认透明路由的网段为: \033[32m$(ip a 2>&1 | grep -w 'inet' | grep 'global' | grep 'br' | grep -v 'iot' | grep -E ' 1(92|0|72)\.' | sed 's/.*inet.//g' | sed 's/br.*$//g' | sed 's/metric.*$//g' | tr '\n' ' ' && echo ) \033[0m"
@@ -736,10 +736,10 @@ setfirewall(){ #防火墙设置
read -p "请输入对应的序号或需要额外添加的网段 > " text
case $text in
2)
if [ "$replace_default_host_ipv4" == "未用" ]; then
replace_default_host_ipv4="已用"
if [ "$replace_default_host_ipv4" == "未用" ]; then
replace_default_host_ipv4="已用"
else
replace_default_host_ipv4="未用"
replace_default_host_ipv4="未用"
fi
setconfig replace_default_host_ipv4 "$replace_default_host_ipv4"
set_cust_host_ipv4