Skip to content

Commit 71ee76b

Browse files
committed
v1.9.0 新特性
- 使用新域名 httpsok.com - 增加nginx运行状态提示 - 增加DNS解析检测提醒 - 优化DNS解析检查 - 解决nginx重载失败问题 - 完善开发文档
1 parent b3115ad commit 71ee76b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

httpsok.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ _initparams() {
194194
_info "version: $NGINX_VERSION"
195195
_info "nginx-config: $NGINX_CONFIG"
196196
_info "nginx-config-home: $NGINX_CONFIG_HOME"
197+
_info "nginx-bin: $nginx_bin"
197198
showWelcome
198199
}
199200

@@ -251,6 +252,11 @@ _remote_log() {
251252
_put "/log/$type?code=$code" "$msg"
252253
}
253254

255+
_done() {
256+
_t=$(_time)
257+
_get "/done?t=$_t"
258+
}
259+
254260
_create_file() {
255261
local file_path="$1"
256262
if [ ! -e "$file_path" ]; then
@@ -359,17 +365,16 @@ _check_token() {
359365
_err "Invalid token: \033[1;36m$HTTPSOK_TOKEN\033[0m"
360366
_info "Please copy your token from '$HTTPSOK_HOME_URL'"
361367
echo
368+
_err "$status"
362369
exit 4
363370
fi
364371
return 0
365372
}
366373

367-
368374
# Limit the maximum nesting level
369375
_include_max_calls=5
370376
_include_global_count=0
371377

372-
373378
__process_include() {
374379

375380
# echo "-_include_global_count: $_include_global_count --------------------------------------------------"
@@ -831,6 +836,7 @@ _run() {
831836
_check_dns
832837
_check_certs
833838
_reload_nginx
839+
_done
834840
echo ""
835841
}
836842

0 commit comments

Comments
 (0)