修改alterid默认值

修改代码合并bug
pull/355/head
wulabing 2019-11-24 12:23:49 +08:00
parent a2326aebf1
commit ff104bf3dc
3 changed files with 9 additions and 7 deletions

View File

@ -19,8 +19,8 @@
"tlsSettings": {
"certificates": [
{
"certificateFile": "/etc/v2ray/v2ray.crt",
"keyFile": "/etc/v2ray/v2ray.key"
"certificateFile": "/data/v2ray.crt",
"keyFile": "/data/v2ray.key"
}
]
}

View File

@ -179,8 +179,8 @@ basic_optimization(){
port_alterid_set(){
read -p "请输入连接端口default:443:" port
[[ -z ${port} ]] && port="443"
read -p "请输入alterIDdefault:4:" alterID
[[ -z ${alterID} ]] && alterID="4"
read -p "请输入alterIDdefault:2:" alterID
[[ -z ${alterID} ]] && alterID="2"
}
modify_port_UUID(){
let PORT=$RANDOM+10000

View File

@ -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 "请输入alterIDdefault:64:" alterID
[[ -z ${alterID} ]] && alterID="64"
stty erase '^H' && read -p "请输入alterIDdefault: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