Update hev-socks5-tunnel configuration setup

This commit is contained in:
StressOzz authored and GitHub committed 2026-08-24 23:52:27 +05:00
1 parent ba1cec1ace
commit 858e89b5f7
1 file changed
+5 -2
+5 -2
View File
@@ -1274,8 +1274,11 @@ EOF
sleep 1 sleep 1
echo "Настройка UCI-сервиса hev-socks5-tunnel" echo "Настройка UCI-сервиса hev-socks5-tunnel"
uci set hev-socks5-tunnel.config.enabled='1' if ! uci -q get hev-socks5-tunnel.@instance[0] >/dev/null 2>&1; then
uci set hev-socks5-tunnel.config.configfile='/etc/hev-socks5-tunnel/main.yml' 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 uci commit hev-socks5-tunnel
/etc/init.d/hev-socks5-tunnel restart /etc/init.d/hev-socks5-tunnel restart
sleep 2 sleep 2