Versions in this module Expand all Collapse all v1 v1.24.5 Aug 14, 2025 Changes in this version + func WriteLocalHeader(w io.Writer) error + 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 ErrBadAddressType struct + Address string + func (e *ErrBadAddressType) Error() string + type ErrBadHeader struct + Header []byte + func (e *ErrBadHeader) Error() string + type ErrBadLocal struct + IP string + Port string + func (e *ErrBadLocal) Error() string + type ErrBadRemote struct + IP string + Port string + func (e *ErrBadRemote) Error() string + type Listener struct + AcceptUnknown bool + Listener net.Listener + ProxyHeaderTimeout time.Duration + func (p *Listener) Accept() (net.Conn, error) + func (p *Listener) Addr() net.Addr + func (p *Listener) Close() error