Versions in this module Expand all Collapse all v0 v0.1.1 Jul 14, 2023 v0.1.0 May 22, 2023 Changes in this version + var ErrAddressFamilyMismatch = errors.New("address family between source and target mismatched") + var MagicV2 = []byte + type AddressWrapper interface + Unwrap func() net.Addr + type Listener struct + func NewListener(o net.Listener) *Listener + func (n *Listener) Accept() (net.Conn, error) + type Proxy struct + Command ProxyCommand + DstAddress net.Addr + SrcAddress net.Addr + TLV []ProxyTlv + Version ProxyVersion + func ParseProxyV2(rd io.Reader) (m *Proxy, n int, err error) + func (p *Proxy) ToBytes() ([]byte, error) + type ProxyAddressFamily int + const ProxyAFINet + const ProxyAFINet6 + const ProxyAFUnix + const ProxyAFUnspec + type ProxyCommand int + const ProxyCommandLocal + const ProxyCommandProxy + type ProxyNetwork int + const ProxyNetworkDgram + const ProxyNetworkStream + const ProxyNetworkUnspec + type ProxyTlv struct + Content []byte + Typ ProxyTlvType + type ProxyTlvType int + const ProxyTlvALPN + const ProxyTlvAuthority + const ProxyTlvCRC32C + const ProxyTlvNetns + const ProxyTlvNoop + const ProxyTlvSSL + const ProxyTlvSSLCN + const ProxyTlvSSLCipher + const ProxyTlvSSLKeyALG + const ProxyTlvSSLSignALG + const ProxyTlvUniqueID + type ProxyVersion int + const ProxyVersion2