Optimize script

pull/402/head
misakano7545 2022-05-27 02:34:55 +08:00
parent 8d8810f64f
commit 7e0d7133a7
1 changed files with 3 additions and 1 deletions

View File

@ -229,7 +229,7 @@ function domain_check() {
if [[ ${wgcfv4_status} =~ "on"|"plus" ]] || [[ ${wgcfv6_status} =~ "on"|"plus" ]]; then
# 关闭wgcf-warp以防误判VPS IP情况
wg-quick down wgcf >/dev/null 2>&1
judge "已关闭wgcf-warp以防误判VPS IP情况"
judge "已关闭 wgcf-warp"
fi
local_ipv4=$(curl -s4m8 https://ip.gs)
local_ipv6=$(curl -s6m8 https://ip.gs)
@ -406,11 +406,13 @@ function acme() {
print_ok "SSL 证书配置成功"
sleep 2
wg-quick up wgcf >/dev/null 2>&1
judge "已启动 wgcf-warp"
fi
else
print_error "SSL 证书生成失败"
rm -rf "$HOME/.acme.sh/${domain}_ecc"
wg-quick up wgcf >/dev/null 2>&1
judge "已启动 wgcf-warp"
exit 1
fi