Initial commit

This commit is contained in:
Armon Dadgar
2014-03-07 16:45:16 -08:00
parent debe0b5149
commit 4e433eb4da
4 changed files with 419 additions and 3 deletions

View File

@@ -1,4 +1,15 @@
go-proxyproto
=============
# proxyproto
This library provides the `proxyproto` package which can be used for servers
listening behind HAProxy of Amazon ELB load balancers. Those load balancers
support the use of a proxy protocol (http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt),
which provides a simple mechansim for the server to get the address of the client
instead of the load balancer.
This library provides both a net.Listener and net.Conn implementation that
can be used to handle situation in which you may be using the proxy protocol.
The only caveat is that we check for the "PROXY " prefix to determine if the protocol
is being used. If that string may occur as part of your input, then it is ambiguous
if the protocol is being used and you may have problems.
Golang package to handle HAProxy Proxy Protocol