mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix v2ray init
This commit is contained in:
parent
2ac1c905a9
commit
2d4462794b
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue