tunnel

package
v0.0.0-...-3226cea Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: AGPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultTCPRouting

func DefaultTCPRouting(fr *tcp.ForwarderRequest) error

func DefaultUDPRouting

func DefaultUDPRouting(stack *stack.Stack, fr *udp.ForwarderRequest) error

func Disable

func Disable()

func Enable

func Enable()

func EndAllConnections

func EndAllConnections()

func InitializeResolver

func InitializeResolver()

func IsActive

func IsActive() bool

IsActive checks if the tunnel is initialized

func Reconnect

func Reconnect()

func ResolveQuery

func ResolveQuery(msg []byte) ([]byte, error)

func SystemShutdown

func SystemShutdown()

Types

type Addr

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

Implements net.Addr

func (Addr) Network

func (a Addr) Network() string

func (Addr) String

func (a Addr) String() string

type ConnDefaultForward

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

type ConnSPNForward

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

func (ConnSPNForward) Close

func (c ConnSPNForward) Close() error

func (ConnSPNForward) LocalAddr

func (c ConnSPNForward) LocalAddr() net.Addr

func (ConnSPNForward) Read

func (c ConnSPNForward) Read(b []byte) (n int, err error)

func (ConnSPNForward) RemoteAddr

func (c ConnSPNForward) RemoteAddr() net.Addr

func (ConnSPNForward) SetDeadline

func (c ConnSPNForward) SetDeadline(t time.Time) error

func (ConnSPNForward) SetReadDeadline

func (c ConnSPNForward) SetReadDeadline(t time.Time) error

func (ConnSPNForward) SetWriteDeadline

func (c ConnSPNForward) SetWriteDeadline(t time.Time) error

func (ConnSPNForward) Write

func (c ConnSPNForward) Write(b []byte) (n int, err error)

type TunnelState

type TunnelState struct {
	Status string
	Error  string
}

Jump to

Keyboard shortcuts

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