tproxy

package
v0.21.192 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 20 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)

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