Skip to content

Conversation

vozlt
Copy link

@vozlt vozlt commented Mar 1, 2015

Hi agentzh.
This adds ngx_http_lua_upstream_set_peer_addr() to change upstream ip:port for #10.
I would appreciate it if you could run tests and merge this feature with your branch.

The syntax is similar to set_peer_down as follows:
syntax: ok, err = upstream.set_peer_addr(upstream_name, is_backup, peer_id, addr_value)
upstream.set_peer_addr("bar", false, 0, "10.10.10.10:80")

…am ip:port and addr key to gain real connection address in ngx_http_lua_get_peer().
@agentzh
Copy link
Member

agentzh commented Mar 2, 2015

@vozlt Thanks for the patch. I'll look into this as soon as I can manage. Too busy at the moment. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants