forwarder

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForwardUDP added in v2.11.0

func ForwardUDP(ctx context.Context, conn *net.UDPConn, targetAddr *net.UDPAddr) error

Types

type Interceptor added in v2.6.8

type Interceptor interface {
	io.Closer
	InterceptId() string
	InterceptInfo() *restapi.InterceptInfo
	Serve(context.Context, chan<- net.Addr) error
	SetIntercepting(*manager.InterceptInfo)
	SetStreamProvider(tunnel.ClientStreamProvider)
	Target() (string, uint16)
}

func NewInterceptor added in v2.6.8

func NewInterceptor(addr net.Addr, targetHost string, targetPort uint16) Interceptor

Jump to

Keyboard shortcuts

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