Versions in this module Expand all Collapse all v1 v1.0.2 Apr 25, 2024 v1.0.1 Apr 24, 2024 Changes in this version + func AllowedIPs() []netip.Prefix + func ApplyAdditions(metadata *C.Metadata, additions ...Addition) + func DisAllowedIPs() []netip.Prefix + func IsRemoteAddrDisAllowed(addr net.Addr) bool + 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 SetAllowedIPs(prefixes []netip.Prefix) + func SetDisAllowedIPs(prefixes []netip.Prefix) + 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 WithDSCP(dscp uint8) Addition + 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