tproxy

package
v0.19.9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (intercept.Interceptor, error)

func NewWithLanIf added in v0.17.65

func NewWithLanIf(lanIf 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