Versions in this module Expand all Collapse all v0 v0.1.0 Nov 6, 2023 Changes in this version + var ErrInvalidUpstream = errors.New("upstream connection address not trusted for PROXY information") + type Conn struct + func NewConn(conn net.Conn, timeout time.Duration) *Conn + func (p *Conn) Close() error + func (p *Conn) LocalAddr() net.Addr + func (p *Conn) Read(b []byte) (int, error) + func (p *Conn) ReadFrom(r io.Reader) (int64, error) + func (p *Conn) RemoteAddr() net.Addr + func (p *Conn) SetDeadline(t time.Time) error + func (p *Conn) SetReadDeadline(t time.Time) error + func (p *Conn) SetWriteDeadline(t time.Time) error + func (p *Conn) Write(b []byte) (int, error) + func (p *Conn) WriteTo(w io.Writer) (int64, error) + type Listener struct + Listener net.Listener + ProxyHeaderTimeout time.Duration + SourceCheck SourceChecker + UnknownOK bool + func (p *Listener) Accept() (net.Conn, error) + func (p *Listener) Addr() net.Addr + func (p *Listener) Close() error + type SourceChecker func(net.Addr) (bool, error)