Update hev-socks5-tunnel configuration setup
This commit is contained in:
1 parent
ba1cec1ace
commit
858e89b5f7
1 file changed
+9
-6
@@ -1273,12 +1273,15 @@ EOF
|
|||||||
/etc/init.d/firewall restart 2>/dev/null || true
|
/etc/init.d/firewall restart 2>/dev/null || true
|
||||||
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
|
||||||
uci commit hev-socks5-tunnel
|
fi
|
||||||
/etc/init.d/hev-socks5-tunnel restart
|
uci set hev-socks5-tunnel.@instance[0].enabled='1'
|
||||||
sleep 2
|
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 "Настройка сетевого интерфейса"
|
echo "Настройка сетевого интерфейса"
|
||||||
uci set network.Mihomo=interface
|
uci set network.Mihomo=interface
|
||||||
|
|||||||
Reference in new issue
Block a user