package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Functions

NewConn is used to wrap a net.Conn speaking the proxy protocol into a proxyprotocol.Conn.
WriteLocalHeader will write the ProxyProtocol Header for a local connection to the provided writer.

# Structs

Conn is used to wrap and underlying connection which is speaking the Proxy Protocol.
ErrBadAddressType is an error demonstrating a bad proxy header with bad Address type.
ErrBadHeader is an error demonstrating a bad proxy header.
ErrBadLocal is an error demonstrating a bad proxy header with bad Local.
ErrBadRemote is an error demonstrating a bad proxy header with bad Remote.
Listener is used to wrap an underlying listener, whose connections may be using the HAProxy Proxy Protocol (version 1 or 2).