Skip to content

Add support for proxy protocol#122

Open
fenichelar wants to merge 1 commit intokirm:masterfrom
fenichelar:master
Open

Add support for proxy protocol#122
fenichelar wants to merge 1 commit intokirm:masterfrom
fenichelar:master

Conversation

@fenichelar
Copy link
Copy Markdown

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.

1 participant