1.1.0 旧配置适配 bug 修正

pull/175/head^2
wulabing 2020-02-15 21:33:31 +08:00
parent ff899d7d33
commit 625f7a0d52
1 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@ port_alterid_set(){
modify_path(){ modify_path(){
if [[ "on" == "$old_config_status" ]] if [[ "on" == "$old_config_status" ]]
then then
camouflage="$(cat $v2ray_qr_config_file | grep '\"net\"' | awk -F '"' '{print $4}')" camouflage="$(cat $v2ray_qr_config_file | grep '\"path\"' | awk -F '"' '{print $4}')"
fi fi
sed -i "/\"path\"/c \\\t \"path\":\"\/${camouflage}\/\"" ${v2ray_conf} sed -i "/\"path\"/c \\\t \"path\":\"\/${camouflage}\/\"" ${v2ray_conf}
judge "V2ray 伪装路径 修改" judge "V2ray 伪装路径 修改"
@ -671,7 +671,7 @@ basic_information(){
echo -e "${Red} 地址address:${Font} $(info_extraction "add") " >> ${v2ray_info_file} echo -e "${Red} 地址address:${Font} $(info_extraction "add") " >> ${v2ray_info_file}
echo -e "${Red} 端口port${Font} $(info_extraction "port") " >> ${v2ray_info_file} echo -e "${Red} 端口port${Font} $(info_extraction "port") " >> ${v2ray_info_file}
echo -e "${Red} 用户idUUID${Font} $(info_extraction '\"id\"')" >> ${v2ray_info_file} echo -e "${Red} 用户idUUID${Font} $(info_extraction '\"id\"')" >> ${v2ray_info_file}
echo -e "${Red} 额外idalterId${Font} $(info_extraction "aid")" >> ${v2ray_info_file} echo -e "${Red} 额外idalterId${Font} $(info_extraction '\"aid\"')" >> ${v2ray_info_file}
echo -e "${Red} 加密方式security${Font} 自适应 " >> ${v2ray_info_file} echo -e "${Red} 加密方式security${Font} 自适应 " >> ${v2ray_info_file}
echo -e "${Red} 传输协议network${Font} $(info_extraction "net") " >> ${v2ray_info_file} echo -e "${Red} 传输协议network${Font} $(info_extraction "net") " >> ${v2ray_info_file}
echo -e "${Red} 伪装类型type${Font} none " >> ${v2ray_info_file} echo -e "${Red} 伪装类型type${Font} none " >> ${v2ray_info_file}