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

Add support for proxy protocol #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

fenichelar
Copy link

Proxy protocol, described here, is a very simple protocol to add infomation about the source of a packet when a reverse proxy is used. This change looks at the first line of the stream and if it matches the proxy protocol format, the line is parsed and stripped before continuing on as normal. The content of the proxy protocol header is added to the object containing information about the remote host under the proxy key. When the proxy protocol is not used, proxy is undefined and everything behaves exactly as before.

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.

None yet

1 participant