tproxy

package
v0.24.233 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(lanIf string) (intercept.Interceptor, error)

func NewWithDiverter added in v0.24.101

func NewWithDiverter(lanIf, diverter string) (intercept.Interceptor, error)

Types

type IPPortAddr

type IPPortAddr interface {
	GetIP() net.IP
	GetPort() int
	GetProtocol() string
}

type TCPIPPortAddr

type TCPIPPortAddr net.TCPAddr

func (*TCPIPPortAddr) GetIP

func (addr *TCPIPPortAddr) GetIP() net.IP

func (*TCPIPPortAddr) GetPort

func (addr *TCPIPPortAddr) GetPort() int

func (*TCPIPPortAddr) GetProtocol

func (addr *TCPIPPortAddr) GetProtocol() string

type UDPIPPortAddr

type UDPIPPortAddr net.UDPAddr

func (*UDPIPPortAddr) GetIP

func (addr *UDPIPPortAddr) GetIP() net.IP

func (*UDPIPPortAddr) GetPort

func (addr *UDPIPPortAddr) GetPort() int

func (*UDPIPPortAddr) GetProtocol

func (addr *UDPIPPortAddr) GetProtocol() string

Jump to

Keyboard shortcuts

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