mirror of https://github.com/wulabing/Xray_onekey
Optimize script
parent
8d8810f64f
commit
7e0d7133a7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue