pull/95/head
233boy 6 years ago
parent f3ae017179
commit 0576a94475
  1. 3
      tools/v3.sh
  2. 5
      v2ray.sh

@ -12,6 +12,9 @@ case $v2ray_transport in
17) 17)
_transport=1 _transport=1
;; ;;
*)
_transport=$v2ray_transport
;;
esac esac
if [[ $v2ray_transport == 17 ]]; then if [[ $v2ray_transport == 17 ]]; then

@ -74,10 +74,13 @@ v2ray_client_config="/etc/v2ray/233blog_v2ray_config.json"
v2ray_pid=$(ps ux | grep "/usr/bin/v2ray/v2ray" | grep -v grep | awk '{print $2}') v2ray_pid=$(ps ux | grep "/usr/bin/v2ray/v2ray" | grep -v grep | awk '{print $2}')
caddy_pid=$(pgrep "caddy") caddy_pid=$(pgrep "caddy")
_v2ray_sh="/usr/local/sbin/v2ray" _v2ray_sh="/usr/local/sbin/v2ray"
v2ray_ver="v$(/usr/bin/v2ray/v2ray -version | head -n 1 | cut -d " " -f2)" v2ray_ver="$(/usr/bin/v2ray/v2ray -version | head -n 1 | cut -d " " -f2)"
. /etc/v2ray/233boy/v2ray/src/init.sh . /etc/v2ray/233boy/v2ray/src/init.sh
_test=true _test=true
if [[ $v2ray_ver != v* ]]; then
v2ray_ver="v$v2ray_ver"
fi
if [[ ! -f $_v2ray_sh ]]; then if [[ ! -f $_v2ray_sh ]]; then
mv -f /usr/local/bin/v2ray $_v2ray_sh mv -f /usr/local/bin/v2ray $_v2ray_sh
chmod +x $_v2ray_sh chmod +x $_v2ray_sh

Loading…
Cancel
Save