From 6058e148f1a8be0a1792afcd8006e8b20c938cc7 Mon Sep 17 00:00:00 2001 From: 233boy <31657650+233boy@users.noreply.github.com> Date: Tue, 25 Jun 2019 11:42:38 +0800 Subject: [PATCH] fix bug --- src/vmess-config.sh | 8 ++++---- v2ray.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vmess-config.sh b/src/vmess-config.sh index a1e81cd..cb7e1f6 100644 --- a/src/vmess-config.sh +++ b/src/vmess-config.sh @@ -98,14 +98,14 @@ esac ## change client config file [[ -z $ip ]] && get_ip if [[ $v2ray_transport == [45] ]]; then - sed -i "s/233blog.com/$domain/; 13s/2333/443/; 16s/$old_id/$v2ray_id/; 17s/233/$alterId/" $v2ray_client_config + sed -i "s/233blog.com/$domain/; 9s/2333/443/; 12s/$old_id/$v2ray_id/; 13s/233/$alterId/" $v2ray_client_config if [[ $is_path ]]; then - sed -i "31s/233blog/$path/" $v2ray_client_config + sed -i "27s/233blog/$path/" $v2ray_client_config else - sed -i "31s/233blog//" $v2ray_client_config + sed -i "27s/233blog//" $v2ray_client_config fi else - sed -i "s/233blog.com/$ip/; 13s/2333/$v2ray_port/; 16s/$old_id/$v2ray_id/; 17s/233/$alterId/" $v2ray_client_config + sed -i "s/233blog.com/$ip/; 9s/2333/$v2ray_port/; 12s/$old_id/$v2ray_id/; 13s/233/$alterId/" $v2ray_client_config fi # zip -q -r -j --password "233blog.com" /etc/v2ray/233blog_v2ray.zip $v2ray_client_config diff --git a/v2ray.sh b/v2ray.sh index 2dd49d6..e62861c 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="v3.11" +_version="v3.12" cmd="apt-get"