From 71a64430fbfc099a9640531df17ddba48d262cc6 Mon Sep 17 00:00:00 2001 From: ytlm Date: Thu, 27 Jun 2024 10:35:39 +0800 Subject: [PATCH] fix: ngx_stream_upstream_t peer --- src/ngx_stream_lua_balancer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngx_stream_lua_balancer.c b/src/ngx_stream_lua_balancer.c index 628e6a86..02df97e8 100644 --- a/src/ngx_stream_lua_balancer.c +++ b/src/ngx_stream_lua_balancer.c @@ -768,7 +768,7 @@ ngx_stream_lua_ffi_balancer_set_proxy_bind(ngx_stream_lua_request_t *r, } u = r->session->upstream; - if (u == NULL || u->peer == NULL) { + if (u == NULL) { *err = "no upstream found"; return NGX_ERROR; }