mirror of https://github.com/wulabing/Xray_onekey
1.1.0 逻辑优化
parent
03190a63a1
commit
b0aec4abce
|
@ -257,7 +257,7 @@ modify_alterid(){
|
||||||
modify_inbound_port(){
|
modify_inbound_port(){
|
||||||
if [[ "on" == "$old_config_status" ]]
|
if [[ "on" == "$old_config_status" ]]
|
||||||
then
|
then
|
||||||
port="$(cat $v2ray_qr_config_file | grep '\"port\"' | awk -F '"' '{print $4}')"
|
port="$(info_extraction '\"port\"')"
|
||||||
fi
|
fi
|
||||||
if [[ "$shell_mode" != "h2" ]]
|
if [[ "$shell_mode" != "h2" ]]
|
||||||
then
|
then
|
||||||
|
@ -272,7 +272,7 @@ modify_UUID(){
|
||||||
[ -z $UUID ] && UUID=$(cat /proc/sys/kernel/random/uuid)
|
[ -z $UUID ] && UUID=$(cat /proc/sys/kernel/random/uuid)
|
||||||
if [[ "on" == "$old_config_status" ]]
|
if [[ "on" == "$old_config_status" ]]
|
||||||
then
|
then
|
||||||
UUID="$(cat $v2ray_qr_config_file | grep '\"id\"' | awk -F '"' '{print $4}')"
|
UUID="$(info_extraction '\"id\"')"
|
||||||
fi
|
fi
|
||||||
sed -i "/\"id\"/c \\\t \"id\":\"${UUID}\"," ${v2ray_conf}
|
sed -i "/\"id\"/c \\\t \"id\":\"${UUID}\"," ${v2ray_conf}
|
||||||
judge "V2ray UUID 修改"
|
judge "V2ray UUID 修改"
|
||||||
|
@ -282,7 +282,7 @@ modify_UUID(){
|
||||||
modify_nginx_port(){
|
modify_nginx_port(){
|
||||||
if [[ "on" == "$old_config_status" ]]
|
if [[ "on" == "$old_config_status" ]]
|
||||||
then
|
then
|
||||||
port="$(cat $v2ray_qr_config_file | grep '\"port\"' | awk -F '"' '{print $4}')"
|
port="$(info_extraction '\"port\"')"
|
||||||
fi
|
fi
|
||||||
sed -i "/ssl http2;$/c \\\tlisten ${port} ssl http2;" ${nginx_conf}
|
sed -i "/ssl http2;$/c \\\tlisten ${port} ssl http2;" ${nginx_conf}
|
||||||
judge "V2ray port 修改"
|
judge "V2ray port 修改"
|
||||||
|
@ -765,6 +765,8 @@ show_error_log(){
|
||||||
}
|
}
|
||||||
ssl_update_manuel(){
|
ssl_update_manuel(){
|
||||||
[ -f ${amce_sh_file} ] && "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" || echo -e "${RedBG}证书签发工具不存在,请确认你是否使用了自己的证书${Font}"
|
[ -f ${amce_sh_file} ] && "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" || echo -e "${RedBG}证书签发工具不存在,请确认你是否使用了自己的证书${Font}"
|
||||||
|
domain="$(info_extraction '\"add\"')"
|
||||||
|
$HOME/.acme.sh/acme.sh --installcert -d ${domain} --fullchainpath /data/v2ray.crt --keypath /data/v2ray.key --ecc
|
||||||
}
|
}
|
||||||
bbr_boost_sh(){
|
bbr_boost_sh(){
|
||||||
[ -f "tcp.sh" ] && rm -rf ./tcp.sh
|
[ -f "tcp.sh" ] && rm -rf ./tcp.sh
|
||||||
|
|
Loading…
Reference in New Issue