From 858e89b5f781092ad21baad1ba23b379c3afcdad Mon Sep 17 00:00:00 2001 From: StressOzz <131419324+StressOzz@users.noreply.github.com> Date: Mon, 24 Aug 2026 23:52:27 +0500 Subject: [PATCH] Update hev-socks5-tunnel configuration setup --- files/Mixomo/mixomo_openwrt_install.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/files/Mixomo/mixomo_openwrt_install.sh b/files/Mixomo/mixomo_openwrt_install.sh index 8237256..8a9e8a6 100644 --- a/files/Mixomo/mixomo_openwrt_install.sh +++ b/files/Mixomo/mixomo_openwrt_install.sh @@ -1273,12 +1273,15 @@ EOF /etc/init.d/firewall restart 2>/dev/null || true sleep 1 - echo "Настройка UCI-сервиса hev-socks5-tunnel" - uci set hev-socks5-tunnel.config.enabled='1' - uci set hev-socks5-tunnel.config.configfile='/etc/hev-socks5-tunnel/main.yml' - uci commit hev-socks5-tunnel - /etc/init.d/hev-socks5-tunnel restart - sleep 2 +echo "Настройка UCI-сервиса hev-socks5-tunnel" +if ! uci -q get hev-socks5-tunnel.@instance[0] >/dev/null 2>&1; then + uci add hev-socks5-tunnel instance >/dev/null +fi +uci set hev-socks5-tunnel.@instance[0].enabled='1' +uci set hev-socks5-tunnel.@instance[0].conffile='/etc/hev-socks5-tunnel/main.yml' +uci commit hev-socks5-tunnel +/etc/init.d/hev-socks5-tunnel restart +sleep 2 echo "Настройка сетевого интерфейса" uci set network.Mihomo=interface