minor tweaks.

This commit is contained in:
jiahao 2021-08-02 23:56:36 +08:00
parent 8f5ac9f95e
commit 33a8d456b8
2 changed files with 1 additions and 5 deletions

View File

@ -103,7 +103,7 @@
clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module);
clcf->handler = ngx_http_redis_handler;
@@ -936,10 +957,84 @@
@@ -936,10 +956,83 @@
rlcf->db = ngx_http_get_variable_index(cf, &ngx_http_redis_db);
rlcf->auth = ngx_http_get_variable_index(cf, &ngx_http_redis_auth);
@ -141,7 +141,6 @@
+ if (rlcf->upstream.upstream == NULL) {
+ return NGX_CONF_ERROR;
+ }
+
+
return NGX_CONF_OK;
}

View File

@ -657,9 +657,6 @@ echo "applying ngx_http_redis-$ver-default_port_fix.patch"
patch -p1 < $root/patches/ngx_http_redis-$ver-default_port_fix.patch || exit 1
echo
# echo "applying ngx_http_redis-$ver-without_gzip.patch"
# patch -p1 < $root/patches/ngx_http_redis-$ver-without_gzip.patch || exit 1
# echo
cd ..
#################################