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"