From fadda242eb321cf542e95ffd929b2c7cbc9d798d Mon Sep 17 00:00:00 2001 From: Joseph Mory Date: Sun, 5 Jan 2025 05:57:09 +0000 Subject: [PATCH] fix the issue that mixed hosts not work Signed-off-by: Joseph Mory --- luci-app-mihomo/Makefile | 2 +- mihomo/Makefile | 2 +- mihomo/files/mihomo.init | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/luci-app-mihomo/Makefile b/luci-app-mihomo/Makefile index b96df0270..810603ffb 100644 --- a/luci-app-mihomo/Makefile +++ b/luci-app-mihomo/Makefile @@ -1,6 +1,6 @@ include $(TOPDIR)/rules.mk -PKG_VERSION:=1.17.1 +PKG_VERSION:=1.17.2 LUCI_TITLE:=LuCI Support for mihomo LUCI_DEPENDS:=+luci-base +mihomo 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"