From ff104bf3dc9883186216fad687d6db9ecb22c375 Mon Sep 17 00:00:00 2001 From: wulabing Date: Sun, 24 Nov 2019 12:23:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9alterid=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=20=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E5=90=88?= =?UTF-8?q?=E5=B9=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http2/config.json | 4 ++-- install.sh | 4 ++-- install_h2.sh | 8 +++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/http2/config.json b/http2/config.json index dbdebd3..e9b6fa7 100644 --- a/http2/config.json +++ b/http2/config.json @@ -19,8 +19,8 @@ "tlsSettings": { "certificates": [ { - "certificateFile": "/etc/v2ray/v2ray.crt", - "keyFile": "/etc/v2ray/v2ray.key" + "certificateFile": "/data/v2ray.crt", + "keyFile": "/data/v2ray.key" } ] } diff --git a/install.sh b/install.sh index 5013647..b962428 100644 --- a/install.sh +++ b/install.sh @@ -179,8 +179,8 @@ basic_optimization(){ port_alterid_set(){ read -p "请输入连接端口(default:443):" port [[ -z ${port} ]] && port="443" - read -p "请输入alterID(default:4):" alterID - [[ -z ${alterID} ]] && alterID="4" + read -p "请输入alterID(default:2):" alterID + [[ -z ${alterID} ]] && alterID="2" } modify_port_UUID(){ let PORT=$RANDOM+10000 diff --git a/install_h2.sh b/install_h2.sh index 0c1030d..e19ca42 100644 --- a/install_h2.sh +++ b/install_h2.sh @@ -178,8 +178,8 @@ dependency_install(){ port_alterid_set(){ stty erase '^H' && read -p "请输入连接端口(default:443):" port [[ -z ${port} ]] && port="443" - stty erase '^H' && read -p "请输入alterID(default:64):" alterID - [[ -z ${alterID} ]] && alterID="64" + stty erase '^H' && read -p "请输入alterID(default:2):" alterID + [[ -z ${alterID} ]] && alterID="2" } random_UUID(){ @@ -269,7 +269,8 @@ acme(){ if [[ $? -eq 0 ]];then echo -e "${OK} ${GreenBG} SSL 证书生成成功 ${Font}" sleep 2 - ~/.acme.sh/acme.sh --installcert -d ${domain} --fullchainpath /etc/v2ray/v2ray.crt --keypath /etc/v2ray/v2ray.key --ecc + mkdir /data + ~/.acme.sh/acme.sh --installcert -d ${domain} --fullchainpath /data/v2ray.crt --keypath /data/v2ray.key --ecc if [[ $? -eq 0 ]];then echo -e "${OK} ${GreenBG} 证书配置成功 ${Font}" sleep 2 @@ -314,6 +315,7 @@ vmess_qr_config(){ "aid": "${alterID}", "net": "h2", "type": "none", + "path": "/${camouflage}/", "tls": "tls" } EOF