~重写Singbox内核dns填充逻辑,修复非标端口报错的问题

~为在线订阅转换添加URLencode编码功能,修复添加中文过滤时报错的问题
~统一Mihomo和Singbox内核的Tun默认网段
~将Singboxr内核providers功能默认更新配置文件的周期调整为同样的12h
~移除实际上限速的360dns
~移除了在线面板提示中由于强制https导致实际无法连接的地址
~修复Mihomo内核开关防泄露和实际最终表现相反的bug
~修复nftables防火墙模式下常用端口过滤对udp流量未能正确生效的bug
This commit is contained in:
juewuy
2025-12-15 19:13:25 +08:00
parent 6794130470
commit 0698004af8
3 changed files with 83 additions and 46 deletions

View File

@@ -452,7 +452,7 @@ EOF
"url": "${2}",
"path": "./providers/${1}.yaml",
"user_agent": "clash.meta;mihomo",
"update_interval": "24h",
"update_interval": "12h",
EOF
fi
#通用部分生成
@@ -2352,7 +2352,7 @@ userguide(){
fi
#设置加密DNS
if [ -s $openssldir/certs/ca-certificates.crt ];then
dns_nameserver='https://doh.360.cn/dns-query, https://dns.alidns.com/dns-query, https://doh.pub/dns-query'
dns_nameserver='https://dns.alidns.com/dns-query, https://doh.pub/dns-query'
dns_fallback='https://cloudflare-dns.com/dns-query, https://dns.google/dns-query, https://doh.opendns.com/dns-query'
dns_resolver='https://223.5.5.5/dns-query, 2400:3200::1'
setconfig dns_nameserver "'$dns_nameserver'"