Skip to content

Commit

Permalink
use v2fly releases
Browse files Browse the repository at this point in the history
  • Loading branch information
233boy committed Jun 11, 2020
1 parent 96c4be3 commit f946429
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/download-v2ray.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
_get_latest_version() {
v2ray_repos_url="https://api.github.com/repos/v2ray/v2ray-core/releases/latest?v=$RANDOM"
v2ray_repos_url="https://api.github.com/repos/v2fly/v2ray-core/releases/latest?v=$RANDOM"
v2ray_latest_ver="$(curl -s $v2ray_repos_url | grep 'tag_name' | cut -d\" -f4)"

if [[ ! $v2ray_latest_ver ]]; then
Expand All @@ -17,7 +17,7 @@ _get_latest_version() {
_download_v2ray_file() {
[[ ! $v2ray_latest_ver ]] && _get_latest_version
v2ray_tmp_file="/tmp/v2ray.zip"
v2ray_download_link="https://github.com/v2ray/v2ray-core/releases/download/$v2ray_latest_ver/v2ray-linux-${v2ray_bit}.zip"
v2ray_download_link="https://github.com/v2fly/v2ray-core/releases/download/$v2ray_latest_ver/v2ray-linux-${v2ray_bit}.zip"

if ! wget --no-check-certificate -O "$v2ray_tmp_file" $v2ray_download_link; then
echo -e "
Expand Down
2 changes: 1 addition & 1 deletion 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.32"
_version="v3.33"

cmd="apt-get"

Expand Down

0 comments on commit f946429

Please sign in to comment.