fix VMessAEAD

pull/842/head^2
233boy 3 years ago
parent 91134794ab
commit f0b3f4395f
  1. 11
      v2ray.sh

@ -10,7 +10,7 @@ none='\e[0m'
# Root # Root
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 [[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1
_version="v3.48" _version="v3.49"
cmd="apt-get" cmd="apt-get"
@ -90,12 +90,11 @@ systemd=true
# _test=true # _test=true
# fix VMessAEAD # fix VMessAEAD
if [ ! $(grep 'v2ray.vmess.aead.forced=false' /lib/systemd/system/v2ray.service) ]; then if [[ ! $(grep 'v2ray.vmess.aead.forced=false' /lib/systemd/system/v2ray.service) ]]; then
systemctl disable v2ray >/dev/null 2>&1
sed -i 's|ExecStart=|ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false |' /lib/systemd/system/v2ray.service sed -i 's|ExecStart=|ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false |' /lib/systemd/system/v2ray.service
systemctl enable v2ray >/dev/null 2>&1 systemctl daemon-reload
systemctl restart v2ray >/dev/null 2>&1 systemctl restart v2ray
fi fi
if [[ $v2ray_ver != v* ]]; then if [[ $v2ray_ver != v* ]]; then
v2ray_ver="v$v2ray_ver" v2ray_ver="v$v2ray_ver"

Loading…
Cancel
Save