1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00

Fix v2ray firewall name

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-10-30 19:32:14 +01:00
parent 92ff9e9e4d
commit e3a04f6478

View file

@ -94,11 +94,17 @@ EOF
if [ "$(uci -q get firewall.v2ray)" = "" ]; then if [ "$(uci -q get firewall.v2ray)" = "" ]; then
uci -q batch <<-EOF >/dev/null uci -q batch <<-EOF >/dev/null
set firewall.v2ray=include set firewall.v2ray=include
set firewall.v2ray.path=/etc/firewall.v2ray set firewall.v2ray.path=/etc/firewall.v2ray-rules
set firewall.v2ray.reload=1 set firewall.v2ray.reload=1
commit firewall commit firewall
EOF EOF
fi fi
if [ "$(uci -q get firewall.v2ray.path)" != "/etc/firewall.v2ray-rules" ]; then
uci -q batch <<-EOF >/dev/null
set firewall.v2ray.path=/etc/firewall.v2ray-rules
commit firewall
EOF
fi
if [ "$(uci -q get v2ray.main_reverse.bridges | grep omrbridge)" = "" ]; then if [ "$(uci -q get v2ray.main_reverse.bridges | grep omrbridge)" = "" ]; then
uci -q batch <<-EOF >/dev/null uci -q batch <<-EOF >/dev/null