tun

package
v0.0.0-...-e25560c Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tun

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

func NewTun

func NewTun(name, iprange string, mtu, port int, hijack []string, tdns string) (*Tun, error)

func (*Tun) Close

func (t *Tun) Close() <-chan struct{}

func (*Tun) Name

func (t *Tun) Name() string

func (*Tun) NeedHijack

func (t *Tun) NeedHijack(ip net.IP, port int) bool

func (*Tun) Proxy

func (t *Tun) Proxy() proxy.Proxy

func (*Tun) Run

func (t *Tun) Run(r router.Router)

func (*Tun) Transport

func (t *Tun) Transport() []transport.Transport

func (*Tun) Type

func (t *Tun) Type() ingress.IngressType

func (*Tun) UnmarshalYAML

func (t *Tun) UnmarshalYAML(value *yaml.Node) error

func (*Tun) WithDNS

func (t *Tun) WithDNS(s string) error

Jump to

Keyboard shortcuts

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