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

Fix rules_up for v2ray and set rules after firewall changes

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-10-16 09:35:27 +02:00
parent b6b6d2fc29
commit d5a1ad3ceb
3 changed files with 20 additions and 17 deletions

View file

@ -94,5 +94,14 @@ if [ -z "$(uci -q get v2ray.main)" ]; then
fi
uci -q set v2ray.omr.listen='::'
if [ "$(uci -q get firewall.v2ray)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set firewall.v2ray=include
set firewall.v2ray.path=/etc/firewall.v2ray
set firewall.v2ray.reload=1
commit firewall
EOF
fi
exit 0