tun

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const MTU uint32 = 1400

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

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

func (*Endpoint) Read

func (ep *Endpoint) Read(buf []byte) (int, error)

func (*Endpoint) Write

func (ep *Endpoint) Write(buf []byte) error

type Stack

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

func NewStack

func NewStack(easyConnectClient *client.EasyConnectClient, dnsHijack bool) (*Stack, error)

func (*Stack) AddRoute

func (s *Stack) AddRoute(target string) error

func (*Stack) DialTCP

func (s *Stack) DialTCP(addr *net.TCPAddr) (net.Conn, error)

func (*Stack) DialUDP

func (s *Stack) DialUDP(addr *net.UDPAddr) (net.Conn, error)

func (*Stack) Run

func (s *Stack) Run()

func (*Stack) SetupResolve added in v0.6.0

func (s *Stack) SetupResolve(r zcdns.LocalServer)

Jump to

Keyboard shortcuts

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