From 22c30d71233f0653460dee36fa7c644b18691a80 Mon Sep 17 00:00:00 2001 From: 233boy Date: Sat, 7 Apr 2018 15:14:36 +0800 Subject: [PATCH] fix read config issues. you need to uninstall and then reinstall !!! --- config/backup.txt | 4 ++-- v2ray.sh | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/config/backup.txt b/config/backup.txt index 8bc3f10..f5d9589 100644 --- a/config/backup.txt +++ b/config/backup.txt @@ -19,8 +19,6 @@ 2333 ---- UUID ----- 23332333-2333-2333-2333-233boy233boy ----- alterId ----- -233 ---- V2Ray 动态端口开始 ----- 10000 ---- V2Ray 动态端口结束 ----- @@ -43,5 +41,7 @@ false false ---- 伪装的路径 ----- 233blog +---- alterId ----- +233 ---- 伪装的网址 ----- https://liyafly.com \ No newline at end of file diff --git a/v2ray.sh b/v2ray.sh index bb4d828..918332e 100644 --- a/v2ray.sh +++ b/v2ray.sh @@ -10,7 +10,7 @@ none='\e[0m' # Root [[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 -_version="v1.65" +_version="v1.66" cmd="apt-get" @@ -49,18 +49,18 @@ if [[ -f /usr/bin/v2ray/v2ray && -f /etc/v2ray/config.json ]] && [[ -f $backup & v2ray_transport=$(sed -n '17p' $backup) v2ray_port=$(sed -n '19p' $backup) v2ray_id=$(sed -n '21p' $backup) - alterId=$(sed -n '23p' $backup) - v2ray_dynamicPort_start=$(sed -n '25p' $backup) - v2ray_dynamicPort_end=$(sed -n '27p' $backup) - domain=$(sed -n '29p' $backup) - caddy_status=$(sed -n '31p' $backup) - shadowsocks_status=$(sed -n '33p' $backup) - ssport=$(sed -n '35p' $backup) - sspass=$(sed -n '37p' $backup) - ssciphers=$(sed -n '39p' $backup) - blocked_ad_status=$(sed -n '41p' $backup) - ws_path_status=$(sed -n '43p' $backup) - ws_path=$(sed -n '45p' $backup) + v2ray_dynamicPort_start=$(sed -n '23p' $backup) + v2ray_dynamicPort_end=$(sed -n '25p' $backup) + domain=$(sed -n '27p' $backup) + caddy_status=$(sed -n '29p' $backup) + shadowsocks_status=$(sed -n '31p' $backup) + ssport=$(sed -n '33p' $backup) + sspass=$(sed -n '35p' $backup) + ssciphers=$(sed -n '37p' $backup) + blocked_ad_status=$(sed -n '39p' $backup) + ws_path_status=$(sed -n '41p' $backup) + ws_path=$(sed -n '43p' $backup) + alterId=$(sed -n '45p' $backup) v2ray_ver=$(/usr/bin/v2ray/v2ray -version | head -n 1 | cut -d " " -f2) @@ -2017,7 +2017,7 @@ change_v2ray_alterId() { echo "----------------------------------------------------------------" echo pause - sed -i "23s/$alterId/$new_alterId/" $backup + sed -i "45s/$alterId/$new_alterId/" $backup alterId=$new_alterId config clear