diff --git a/luci-app-mihomo/Makefile b/luci-app-mihomo/Makefile index b1429409..0dc3a917 100644 --- a/luci-app-mihomo/Makefile +++ b/luci-app-mihomo/Makefile @@ -1,6 +1,6 @@ include $(TOPDIR)/rules.mk -PKG_VERSION:=1.8.2 +PKG_VERSION:=1.8.3 LUCI_TITLE:=LuCI Support for mihomo LUCI_DEPENDS:=+luci-base +mihomo diff --git a/luci-app-mosdns/root/etc/init.d/mosdns b/luci-app-mosdns/root/etc/init.d/mosdns index b4ddc153..387d8b74 100755 --- a/luci-app-mosdns/root/etc/init.d/mosdns +++ b/luci-app-mosdns/root/etc/init.d/mosdns @@ -19,7 +19,7 @@ # along with this program. If not, see . # -START=51 +START=75 USE_PROCD=1 PROG=/usr/bin/mosdns diff --git a/mihomo/Makefile b/mihomo/Makefile index ae7d3fce..d0693ab4 100644 --- a/mihomo/Makefile +++ b/mihomo/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mihomo -PKG_RELEASE:=1 +PKG_RELEASE:=2 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 74d04846..1bd15460 100644 --- a/mihomo/files/mihomo.init +++ b/mihomo/files/mihomo.init @@ -201,6 +201,7 @@ start_service() { yq ea -M -i '. as $item ireduce ({}; . * $item ) | ... comments=""' "$RUN_PROFILE_PATH" "$MIXIN_FILE_PATH" fi fi + yq -M -i 'del (.bind-address)' "$RUN_PROFILE_PATH" if [ "$tun_enable" == 1 ]; then yq -M -i '.tun.auto-route = false | .tun.auto-redirect = false | .tun.auto-detect-interface = false | .tun.dns-hijack = []' "$RUN_PROFILE_PATH" fi @@ -408,7 +409,7 @@ cleanup() { ip -6 route flush table "$TPROXY_ROUTE_TABLE" > /dev/null 2>&1 ip -6 route flush table "$TUN_ROUTE_TABLE" > /dev/null 2>&1 # delete tun - ip link set "$TUN_DEVICE" down + ip link set "$TUN_DEVICE" down > /dev/null 2>&1 ip tuntap del dev "$TUN_DEVICE" mode tun > /dev/null 2>&1 # delete hijack nft delete table inet "$FW_TABLE" > /dev/null 2>&1