🌴 Sync 2026-10-12 12:02:15

This commit is contained in:
github-actions[bot] committed 2026-10-12 12:02:15 +08:00
1 parent 1b64546588
commit 887e5ac8e3
261 files changed
+52646 -35012

No files matched your search

@@ -28,7 +28,7 @@ DEBUG_LOG="/tmp/openclash_debug.log"
LOGTIME=$(echo $(date "+%Y-%m-%d %H:%M:%S"))
log_level=$(uci_get_config "log_level")
enable_custom_dns=$(uci_get_config "enable_custom_dns")
enable_custom_clash_rules=$(uci_get_config "enable_custom_clash_rules")
enable_custom_clash_rules=$(uci_get_config "enable_custom_clash_rules")
ipv6_enable=$(uci_get_config "ipv6_enable")
ipv6_dns=$(uci_get_config "ipv6_dns")
enable_redirect_dns=$(uci_get_config "enable_redirect_dns")
@@ -49,6 +49,11 @@ fi
core_meta_version=$(/etc/openclash/core/clash_meta -v 2>/dev/null |awk -F ' ' '{print $3}' |head -1 2>/dev/null)
op_version=$(ipk_v "luci-app-openclash")
china_ip_route=$(uci_get_config "china_ip_route")
china_ip_route_domain_source=$(uci_get_config "china_ip_route_domain_source" || echo "mrs")
case "$china_ip_route_domain_source" in
mrs|geosite) ;;
*) china_ip_route_domain_source="mrs" ;;
esac
common_ports=$(uci_get_config "common_ports")
router_self_proxy=$(uci_get_config "router_self_proxy")
core_type=$(uci_get_config "core_type" || echo "Dev")
@@ -89,28 +94,28 @@ fi
ts_cf()
{
if [ "$1" = "0" ] || [ -z "$1" ]; then
echo "停用"
else
echo "启用"
if [ "$1" = "0" ] || [ -z "$1" ]; then
echo "停用"
else
echo "启用"
fi
}
ts_re()
{
if [ -z "$1" ]; then
echo "未安装"
else
echo "已安装 ($1)"
if [ -z "$1" ]; then
echo "未安装"
else
echo "已安装 ($1)"
fi
}
dns_re()
{
if [ "$1" = "1" ]; then
echo "Dnsmasq 转发"
echo "Dnsmasq 转发"
elif [ "$1" = "2" ]; then
echo "Firewall 转发"
echo "Firewall 转发"
else
echo "停用"
fi
@@ -146,6 +151,7 @@ cat > "$DEBUG_LOG" <<-EOF
| 系统运行时间 | $(uptime 2>/dev/null) |
| IPV6-DHCP | $(uci -q get dhcp.lan.dhcpv6 || echo "未配置") |
| DNS劫持 | $(dns_re "$enable_redirect_dns") |
| TFO 黑洞超时(秒) | $(cat /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec 2>/dev/null || echo "不支持") |
### 磁盘与内存
@@ -311,8 +317,9 @@ cat >> "$DEBUG_LOG" <<-EOF
| 仅代理命中规则流量 | $(ts_cf "$enable_rule_proxy") |
| 仅允许常用端口流量 | $(ts_cf "$common_ports") |
| 绕过中国大陆IP | $(ts_cf "$china_ip_route") |
| 中国大陆域名数据源 | $china_ip_route_domain_source |
| 路由本机代理 | $(ts_cf "$router_self_proxy") |
| TUN堆栈类型 | ${stack_type:-system} |
| TUN堆栈类型 | ${stack_type:-mips} |
| 启动延迟 | ${delay_start:-0}秒 |
| 日志大小 | ${log_size:-1024}KB |
| 旁路由兼容 | $(ts_cf "$bypass_gateway_compatible") |
@@ -800,4 +807,4 @@ sed -i -E 's/([0-9a-fA-F]{1,4})(:[0-9a-fA-F]{1,4}){0,5}::([0-9a-fA-F]{1,4}(:[0-9
sed -i 's/Downloading URL【[^】]*】/Downloading URL【*】/g' "$DEBUG_LOG" 2>/dev/null
del_lock
del_lock