fix new v2-core v5 ver run error

This commit is contained in:
233boy
2022-09-09 00:09:05 +08:00
parent 78213f1f8a
commit 7584ebf73a
2 changed files with 5 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ Environment="V2RAY_VMESS_AEAD_FORCED=false"
#CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
#AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json
#Restart=on-failure
Restart=always

View File

@@ -10,7 +10,7 @@ none='\e[0m'
# Root
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1
_version="v3.57"
_version="v3.58"
cmd="apt-get"
@@ -90,8 +90,9 @@ systemd=true
# _test=true
# fix VMessAEAD
if [[ ! $(grep 'v2ray.vmess.aead.forced=false' /lib/systemd/system/v2ray.service) ]]; then
sed -i 's|ExecStart=|ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false |' /lib/systemd/system/v2ray.service
if [[ ! $(grep 'run -config' /lib/systemd/system/v2ray.service) ]]; then
_load download-v2ray.sh
_install_v2ray_service
systemctl daemon-reload
systemctl restart v2ray
fi