Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature: added ngx_http_lua_upstream_set_peer_addr() #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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