Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsProxyProtocolError ¶
func NewLazyListener ¶ added in v1.0.1
func NewLazyListener(listener net.Listener, allowedIPs string, headerReadTimeout int) (net.Listener, error)
Create new PROXY protocol listener for lazy mode. Lazy mode means PROXY protocol header will be processed at first `Read` call. * listener is basic listener for TCP * allowedIPs is protocol allowed addresses or CIDRs split by `,` if use '*' means allow any address * headerReadTimeout is timeout for PROXY protocol header read
func NewListener ¶
func NewListener(listener net.Listener, allowedIPs string, headerReadTimeout int) (net.Listener, error)
Create new PROXY protocol listener * listener is basic listener for TCP * allowedIPs is protocol allowed addresses or CIDRs split by `,` if use '*' means allow any address * headerReadTimeout is timeout for PROXY protocol header read
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.