luci-app-v2ray-server: fix v2ray server killed by ssr plus

This commit is contained in:
CN_SZTL 2020-03-03 14:32:34 +08:00
parent 20f984d376
commit d786db597d
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for V2ray Server
LUCI_DEPENDS:=+v2ray
LUCI_PKGARCH:=all
PKG_VERSION:=1.1
PKG_RELEASE:=3
PKG_RELEASE:=5
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -20,7 +20,8 @@ gen_v2ray_config_file() {
config_get transport $1 transport
lua /usr/lib/lua/luci/model/cbi/v2ray_server/api/genv2rayconfig.lua $1 > $CONFIG_PATH/$1.json
echolog "$remarks $port 生成并运行 V2ray 配置文件 - $CONFIG_PATH/$1.json"
/usr/bin/v2ray/v2ray -config $CONFIG_PATH/$1.json >/dev/null 2>&1 &
[ -f /var/v2server ] || cp -a /usr/bin/v2ray/v2ray /var/v2server
/var/v2server -config $CONFIG_PATH/$1.json >/dev/null 2>&1 &
}
start_v2ray_server() {