From 4a8618e3d7c0a4a304399741ae8e86455f5ce559 Mon Sep 17 00:00:00 2001 From: gitea-action Date: Sun, 5 Jan 2025 14:00:25 +0800 Subject: [PATCH] mihomo: sync upstream last commit: https://github.com/morytyann/OpenWrt-mihomo/commit/fadda242eb321cf542e95ffd929b2c7cbc9d798d --- mihomo/Makefile | 2 +- mihomo/files/mihomo.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mihomo/Makefile b/mihomo/Makefile index 57e835b75..d05551843 100644 --- a/mihomo/Makefile +++ b/mihomo/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mihomo -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/MetaCubeX/mihomo.git diff --git a/mihomo/files/mihomo.init b/mihomo/files/mihomo.init index e8fa3af9f..d9a4344e4 100644 --- a/mihomo/files/mihomo.init +++ b/mihomo/files/mihomo.init @@ -227,7 +227,7 @@ start_service() { fi if [ "$hosts" == 1 ]; then yq -M -i 'del(.hosts)' "$RUN_PROFILE_PATH" - config_foreach mixin_hosts "host" + config_foreach mixin_hosts "hosts" fi if [ "$dns_nameserver" == 1 ]; then yq -M -i 'del(.dns.default-nameserver) | del(.dns.proxy-server-nameserver) | del(.dns.direct-nameserver) | del(.dns.nameserver) | del(.dns.fallback)' "$RUN_PROFILE_PATH"