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

Disable v2ray log

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-12-03 11:33:33 +01:00
parent b854815d66
commit 44ea3913e9

View file

@ -6,9 +6,9 @@ if [ -z "$(uci -q get v2ray.main)" ]; then
set v2ray.main=v2ray
set v2ray.main.v2ray_file='/usr/bin/v2ray'
set v2ray.main.mem_percentage='0'
set v2ray.main.loglevel='warning'
set v2ray.main.loglevel='debug'
set v2ray.main.access_log='/dev/null'
set v2ray.main.error_log='/var/log/v2ray-error.log'
set v2ray.main.error_log='/dev/null'
set v2ray.main.enabled='0'
set v2ray.main.outbounds='omrout'
set v2ray.main.inbounds='omr'
@ -136,5 +136,11 @@ if [ "$(uci -q get v2ray.omrrouting)" = "" ]; then
EOF
fi
if [ "$(uci -q get v2ray.main.error_log)" != "/dev/null" ]; then
uci -q batch <<-EOF >/dev/null
set v2ray.main.error_log='/dev/null'
commit v2ray
EOF
fi
exit 0