From 0b9cf13a779e2d8703f6770f7228984779dbf948 Mon Sep 17 00:00:00 2001 From: Jun Ouyang Date: Tue, 17 Dec 2024 16:09:42 +0800 Subject: [PATCH] feat: control the proxy_upstream in lua side --- src/ngx_http_lua_kong_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngx_http_lua_kong_module.c b/src/ngx_http_lua_kong_module.c index df92cfb6..44eee728 100644 --- a/src/ngx_http_lua_kong_module.c +++ b/src/ngx_http_lua_kong_module.c @@ -211,7 +211,7 @@ ngx_http_lua_kong_get_next_upstream_mask(ngx_http_request_t *r, return upstream_next; } - if(ctx->next_upstream ~= 0) { + if(ctx->next_upstream != 0) { return ctx->next_upstream; } return upstream_next;