redir

package
v1.18.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EBpfRedirect

type EBpfRedirect struct {
	// contains filtered or unexported fields
}

func NewEBpfRedirect

func NewEBpfRedirect(ifName string, ifIndex int, ifMark uint32, routeIndex uint32, redirAddrPort netip.AddrPort) *EBpfRedirect

func (*EBpfRedirect) Close

func (e *EBpfRedirect) Close()

func (*EBpfRedirect) Lookup

func (e *EBpfRedirect) Lookup(srcAddrPort netip.AddrPort) (socks5.Addr, error)

func (*EBpfRedirect) Start

func (e *EBpfRedirect) Start() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL