Versions in this module Expand all Collapse all v1 v1.0.0 Nov 12, 2023 Changes in this version + func ApplyAdditions(metadata *C.Metadata, additions ...Addition) + func Listen(network, address string) (net.Listener, error) + func ListenContext(ctx context.Context, network, address string) (net.Listener, error) + func NewHTTP(target socks5.Addr, srcConn net.Conn, conn net.Conn, additions ...Addition) (net.Conn, *C.Metadata) + func NewHTTPS(request *http.Request, conn net.Conn, additions ...Addition) (net.Conn, *C.Metadata) + func NewPacket(target socks5.Addr, packet C.UDPPacket, source C.Type, additions ...Addition) (C.UDPPacket, *C.Metadata) + func NewSocket(target socks5.Addr, conn net.Conn, source C.Type, additions ...Addition) (net.Conn, *C.Metadata) + func SetMPTCP(open bool) + func SetSkipAuthPrefixes(prefixes []netip.Prefix) + func SetTfo(open bool) + func SkipAuthPrefixes() []netip.Prefix + func SkipAuthRemoteAddr(addr net.Addr) bool + func SkipAuthRemoteAddress(addr string) bool + type Addition func(metadata *C.Metadata) + func WithDstAddr(addr net.Addr) Addition + func WithInAddr(addr net.Addr) Addition + func WithInName(name string) Addition + func WithInUser(user string) Addition + func WithSpecialProxy(specialProxy string) Addition + func WithSpecialRules(specialRules string) Addition + func WithSrcAddr(addr net.Addr) Addition