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:
parent
b854815d66
commit
44ea3913e9
1 changed files with 8 additions and 2 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue