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 GetAutoDetectInterface() (string, error) + type TcEBpfProgram struct + func NewRedirEBpfProgram(_ []string, _ uint16, _ string) (*TcEBpfProgram, error) + func NewRedirEBpfProgram(ifaceNames []string, redirPort uint16, defaultRouteInterfaceName string) (*TcEBpfProgram, error) + func NewTcEBpfProgram(_ []string, _ string) (*TcEBpfProgram, error) + func NewTcEBpfProgram(ifaceNames []string, tunName string) (*TcEBpfProgram, error) + func (t *TcEBpfProgram) Close() + func (t *TcEBpfProgram) Lookup(srcAddrPort netip.AddrPort) (addr socks5.Addr, err error) + func (t *TcEBpfProgram) RawNICs() []string