1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix v2ray config

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-10-15 16:26:26 +02:00
parent 80b6ab2c4f
commit eefd3ac89a

View file

@ -1,6 +1,6 @@
#!/bin/sh
if [ -z "$(uci -q get v2ray.main2)" ]; then
if [ -z "$(uci -q get v2ray.main)" ]; then
touch /etc/config/v2ray
uci batch <<-EOF
set v2ray.main=v2ray
@ -81,5 +81,7 @@ if [ -z "$(uci -q get v2ray.main2)" ]; then
commit v2ray
EOF
fi
uci -q set v2ray.omr.listen='::'
exit 0