types

package
v0.0.0-...-edbaa72 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NameMappingSuffix = ".pk.ygg"

Variables

This section is empty.

Functions

func ProxyTCP

func ProxyTCP(mtu uint64, c1, c2 net.Conn) error

Types

type NameResolver

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

func NewNameResolver

func NewNameResolver(stack *netstack.YggdrasilNetstack, nameserver string) *NameResolver

func (*NameResolver) Resolve

func (r *NameResolver) Resolve(ctx context.Context, name string) (context.Context, net.IP, error)

type TCPMapping

type TCPMapping struct {
	Listen *net.TCPAddr
	Mapped *net.TCPAddr
}

type TCPMappings

type TCPMappings []TCPMapping

func (*TCPMappings) Set

func (m *TCPMappings) Set(value string) error

func (*TCPMappings) String

func (m *TCPMappings) String() string

Jump to

Keyboard shortcuts

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