Documentation
¶
Overview ¶
Package proxy implements version 2 of the PROXY protocol (https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListener ¶
NewListener creates a net.Listener which accepts connections from an inner net.Listener, reads the PROXY v2 header from the client, and sets the local and remote addresses of the net.Conn to the values specified in the PROXY header.
Types ¶
type Header ¶
Header represents a PROXY protocol header
func ReadHeader ¶
Read the PROXY protocol header from conn
Click to show internal directories.
Click to hide internal directories.