wireguard

package
v0.0.0-...-8e6527b Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// Net is ...
	Net *netstack.Net
	// Device is ...
	Device *device.Device

	// Addr is ...
	Addr string
	// contains filtered or unexported fields
}

Handler is ...

func NewHandler

func NewHandler(addr, dns string, mtu int, setting string, timeout time.Duration) (*Handler, error)

NewHandler is ...

func (*Handler) Close

func (h *Handler) Close() error

Close is ...

func (*Handler) Handle

func (h *Handler) Handle(conn gonet.Conn, tgt net.Addr) error

Handle is ...

func (*Handler) HandlePacket

func (h *Handler) HandlePacket(conn gonet.PacketConn) error

HandlePacket is ...

func (*Handler) LookupHost

func (h *Handler) LookupHost(host string) ([]string, error)

LookupHost is ...

Jump to

Keyboard shortcuts

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