逻辑修复

配置文件分离
pull/355/head
wulabing 2019-12-26 16:08:23 +08:00
parent ec761a4428
commit 730abfca2f
1 changed files with 10 additions and 3 deletions

View File

@ -415,7 +415,7 @@ acme(){
exit 1
fi
}
v2ray_conf_add(){
v2ray_conf_add_tls(){
cd /etc/v2ray
wget https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/tls/config.json -O config.json
modify_path
@ -423,6 +423,13 @@ v2ray_conf_add(){
modify_inbound_port
modify_UUID
}
v2ray_conf_add_h2(){
cd /etc/v2ray
wget https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/http2/config.json -O config.json
modify_path
modify_alterid
modify_UUID
}
nginx_conf_add(){
touch ${nginx_conf_dir}/v2ray.conf
cat>${nginx_conf_dir}/v2ray.conf<<EOF
@ -660,7 +667,7 @@ install_v2ray_ws_tls(){
port_exist_check 80
port_exist_check ${port}
nginx_exist_check
v2ray_conf_add
v2ray_conf_add_tls
nginx_conf_add
web_camouflage
ssl_judge_and_install
@ -684,7 +691,7 @@ install_v2_h2(){
v2ray_install
port_exist_check 80
port_exist_check ${port}
v2ray_conf_add
v2ray_conf_add_h2
ssl_judge_and_install
basic_information
vmess_qr_config_h2