Documentation ¶
Index ¶
- Constants
- 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 ListenNamedPipe(path string) (net.Listener, error)
- func MPTCP() bool
- 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 Placeholder(metadata *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
- func Tfo() bool
- type Addition
- 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
Constants ¶
View Source
const SupportNamedPipe = false
Variables ¶
This section is empty.
Functions ¶
func AllowedIPs ¶
func ApplyAdditions ¶
func DisAllowedIPs ¶
func IsRemoteAddrDisAllowed ¶
func ListenContext ¶
func NewHTTP ¶
func NewHTTP(target socks5.Addr, srcConn net.Conn, conn net.Conn, additions ...Addition) (net.Conn, *C.Metadata)
NewHTTP receive normal http request and return HTTPContext
func NewPacket ¶
func NewPacket(target socks5.Addr, packet C.UDPPacket, source C.Type, additions ...Addition) (C.UDPPacket, *C.Metadata)
NewPacket is PacketAdapter generator
func NewSocket ¶
func NewSocket(target socks5.Addr, conn net.Conn, source C.Type, additions ...Addition) (net.Conn, *C.Metadata)
NewSocket receive TCP inbound and return ConnContext
func Placeholder ¶
func SetAllowedIPs ¶
func SetDisAllowedIPs ¶
func SetSkipAuthPrefixes ¶
func SkipAuthPrefixes ¶
func SkipAuthRemoteAddr ¶
func SkipAuthRemoteAddress ¶
Types ¶
type Addition ¶
func WithDstAddr ¶
func WithInAddr ¶
func WithInName ¶
func WithInUser ¶
func WithSpecialProxy ¶
func WithSpecialRules ¶
func WithSrcAddr ¶
Click to show internal directories.
Click to hide internal directories.