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

Merge branch 'test' into develop

This commit is contained in:
suyuan 2023-04-26 21:53:13 +08:00
commit 58a2ffce69
4 changed files with 66 additions and 29 deletions

View file

@ -1972,7 +1972,7 @@ start_instance() {
return 1
fi
if ! ( eval "$v2ray_file --test --config=\"$config_file\" >/dev/null 2>&1" ) ; then
if ! ( eval "$v2ray_file test -config \"$config_file\" >/dev/null 2>&1" ) ; then
_err "Validate config file failed: $config_file"
return 1
fi
@ -2059,7 +2059,8 @@ start_instance() {
procd_open_instance "$NAME.$section"
procd_set_param command "$v2ray_file"
procd_append_param command "--config=$temp_config"
procd_append_param command run
procd_append_param command -config "$temp_config"
procd_set_param respawn
if [ -n "$asset_location" ] && [ -d "$asset_location" ] ; then