Skip to content

Commit 287ea72

Browse files
author
thomas
committed
v1.7.2
1. 支持宝塔证书配置检测 2. 解决配置无法解析的BUG
1 parent d6e1207 commit 287ea72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

httpsok.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Try to run "bash -version" to check the version.
77
# Try to visit WIKI to find a solution.
88

9-
VER=1.7.1
9+
VER=1.7.2
1010

1111
PROJECT_NAME="httpsok"
1212
PROJECT_ENTRY="httpsok.sh"
@@ -312,7 +312,7 @@ _check_token() {
312312

313313
_preparse() {
314314
_initparams
315-
config_text=$(grep -E "ssl|server_name|server|include|listen" -r "$NGINX_CONFIG_HOME" | cat | grep -v 'SERVER_')
315+
config_text=$(grep -E "ssl|server_name|server|include|listen" -r "$NGINX_CONFIG_HOME" "/www/server/panel/vhost/nginx" | cat | grep -v 'SERVER_')
316316
preparse=$(_post "/preparse" "$config_text")
317317
if [ "$preparse" = "" ]; then
318318
return 4

0 commit comments

Comments
 (0)