Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
233boy committed Sep 9, 2022
1 parent abc0500 commit b4153f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions v2ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ none='\e[0m'
# Root
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1

_version="v3.60"
_version="v3.61"

cmd="apt-get"

Expand Down Expand Up @@ -90,14 +90,15 @@ if [[ $? == 0 ]]; then
v2ray_ver="$(/usr/bin/v2ray/v2ray -version | head -n 1 | cut -d " " -f2)"
else
v2ray_ver="$(/usr/bin/v2ray/v2ray version | head -n 1 | cut -d " " -f2)"
v2ray_ver_v5=1
fi

. /etc/v2ray/233boy/v2ray/src/init.sh
systemd=true
# _test=true

# fix VMessAEAD
if [[ ! $(grep 'run -config' /lib/systemd/system/v2ray.service) ]]; then
if [[ ! $(grep 'run -config' /lib/systemd/system/v2ray.service) && $v2ray_ver_v5 ]]; then
_load download-v2ray.sh
_install_v2ray_service
systemctl daemon-reload
Expand Down

0 comments on commit b4153f2

Please sign in to comment.