Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

Commit

Permalink
fix cert check
Browse files Browse the repository at this point in the history
  • Loading branch information
phlinhng committed Dec 7, 2020
1 parent 9578e20 commit dc3d43b
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/v2gun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -739,13 +739,8 @@ fix_cert() {

write_json /usr/local/etc/v2ray/05_inbounds_vless.json ".inbounds[0].tag" "\"${V2_DOMAIN}\""

if [ -f "~/.acme.sh/${V2_DOMAIN}_ecc/fullchain.cer" ]; then
colorEcho ${GREEN} "证书修复成功!"
show_links
else
colorEcho ${RED} "证书签发失败, 请重试"
exit 1
fi
colorEcho ${GREEN} "证书修复完成"
show_links
else
colorEcho ${YELLOW} "请先安装 V2Ray"
fi
Expand Down Expand Up @@ -819,12 +814,8 @@ install_v2ray() {

get_cert "${V2_DOMAIN}"

if [ -f "~/.acme.sh/${V2_DOMAIN}_ecc/fullchain.cer" ]; then
colorEcho ${GREEN} "安装 VLESS + VMess + Trojan + NaiveProxy 成功!"
show_links
else
colorEcho ${RED} "证书签发失败, 请运行修复证书"
fi
colorEcho ${GREEN} "安装 VLESS + VMess + Trojan + NaiveProxy 成功!"
show_links
}

edit_cf_node() {
Expand Down

0 comments on commit dc3d43b

Please sign in to comment.