Skip to content

Commit

Permalink
Add update v2ray to special version command
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Nov 28, 2018
1 parent 473df9e commit d0e5238
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ source <(curl -sL https://git.io/fNgqx) --remove
v2ray restart 重启 V2Ray
v2ray status 查看 V2Ray 运行状态
v2ray log 查看 V2Ray 运行日志
v2ray update 更新 V2Ray
v2ray update.sh 更新 multi-v2ray脚本
v2ray update 更新 V2Ray 到最新Release版本
v2ray update [version] 更新 V2Ray 到特定版本
v2ray update.sh 更新 multi-v2ray 脚本
v2ray add 新增mkcp + 随机一种 (srtp | wechat-video | utp) header伪装的端口(Group)
v2ray add [wechat|utp|srtp|dtls|wireguard|socks|mtproto|ss] 新增一种协议的组,端口随机,如 v2ray add utp 为新增utp协议
v2ray del 删除端口组
Expand Down Expand Up @@ -126,6 +127,9 @@ source <(curl -sL https://git.io/fNgqx) --remove
**不支持Centos 6**

## 更新日志
**2018.11.29**
加入更新v2ray到特定版本的指令

**2018.11.28**
初版支持Quic, 因v2rayN还未支持, 所以Quic分享协议还不支持

Expand Down
10 changes: 8 additions & 2 deletions v2ray
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ help(){
echo " restart 重启 V2Ray"
echo " status 查看 V2Ray 运行状态"
echo " log 查看 V2Ray 运行日志"
echo " update 更新 V2Ray"
echo " update 更新 V2Ray 到最新Release版本"
echo " update [version] 更新 V2Ray 到特定版本"
echo " update.sh 更新 multi-v2ray脚本"
echo " add 新增mkcp + 随机一种 (srtp | wechat-video | utp | dtls) header伪装的端口(Group)"
echo " add [wechat|utp|srtp|dtls|wireguard|socks|mtproto|ss] 新增一种协议的组,端口随机,如 v2ray add utp 为新增utp协议"
Expand Down Expand Up @@ -75,7 +76,12 @@ while [[ $# > 0 ]];do
tail -f /var/log/v2ray/access.log
;;
update)
bash <(curl -L -s https://install.direct/go.sh)
V2RAY_VERSION="$2"
if [[ -z $V2RAY_VERSION ]];then
bash <(curl -L -s https://install.direct/go.sh)
else
bash <(curl -L -s https://install.direct/go.sh) --version $V2RAY_VERSION
fi
;;
update.sh)
source <(curl -sL https://git.io/fNgqx) -k
Expand Down

0 comments on commit d0e5238

Please sign in to comment.