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; }