Skip to content

Commit

Permalink
feat: control the proxy_upstream in lua side
Browse files Browse the repository at this point in the history
  • Loading branch information
oowl committed Dec 17, 2024
1 parent a146df3 commit 0b9cf13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngx_http_lua_kong_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b9cf13

Please sign in to comment.