From dceb5e28ec78337dab89eef177e19d1f53799d5a Mon Sep 17 00:00:00 2001 From: 233boy Date: Mon, 29 Jan 2018 20:02:51 +0800 Subject: [PATCH] Fix some problems --- install.sh | 3 ++- v2ray.sh | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 9048794..fe6ba8b 100644 --- a/install.sh +++ b/install.sh @@ -1159,7 +1159,7 @@ show_config_info() { 6 | 13) local net="kcp" local network="kcp" - local header="ntp" + local header="utp" ;; 7 | 14) local net="kcp" @@ -1209,6 +1209,7 @@ show_config_info() { fi local shadowray_qr="vmess://$(echo -n "aes-128-cfb:${uuid}@${ip_or_domain}:${v2ray_port}" | base64)?remarks=233blog_v2ray_${ip_or_domain}&obfs=${obfs}" echo "${shadowray_qr}" >/etc/v2ray/shadowray_qr.txt + sed -i 'N;s/\n//' /etc/v2ray/shadowray_qr.txt fi clear echo diff --git a/v2ray.sh b/v2ray.sh index 95a9495..27e6e56 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="1.0.0" +_version="1.0.1" cmd="apt-get" @@ -148,7 +148,7 @@ get_transport_args() { 6 | 13) net="kcp" network="kcp" - header="ntp" + header="utp" ;; 7 | 14) net="kcp" @@ -1943,6 +1943,7 @@ get_v2ray_config_qr_link() { fi local shadowray_qr="vmess://$(echo -n "aes-128-cfb:${v2ray_id}@${ip_or_domain}:${v2ray_port}" | base64)?remarks=233blog_v2ray_${ip_or_domain}&obfs=${obfs}" echo "${shadowray_qr}" >/etc/v2ray/shadowray_qr.txt + sed -i 'N;s/\n//' /etc/v2ray/shadowray_qr.txt fi echo echo -e "$green 正在生成链接.... 稍等片刻即可....$none" @@ -3035,6 +3036,7 @@ _boom_() { fi local shadowray_qr="vmess://$(echo -n "aes-128-cfb:${v2ray_id}@${ip_or_domain}:${v2ray_port}" | base64)?remarks=233blog_v2ray_${ip_or_domain}&obfs=${obfs}" echo "${shadowray_qr}" >/etc/v2ray/shadowray_qr.txt + sed -i 'N;s/\n//' /etc/v2ray/shadowray_qr.txt fi case $v2ray_transport in [1-4] | 9 | 10 | 11)