shreemaan-abhishek commented on code in PR #11499:
URL: https://github.com/apache/apisix/pull/11499#discussion_r1727193051
##########
apisix/init.lua:
##########
@@ -893,7 +906,16 @@ function _M.http_balancer_phase()
return core.response.exit(500)
end
- load_balancer.run(api_ctx.matched_route, api_ctx, common_phase)
+ if api_ctx.custom_upstream_ip then
+ local ok, err = balancer.set_current_peer(api_ctx.custom_upstream_ip,
+ api_ctx.custom_upstream_port)
+ if not ok then
+ core.log.error("failed to overwrite upstream for ai_proxy: ", err)
+ return core.response.exit(500)
+ end
+ else
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]