task

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: GPL-3.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IPText string
	IPFile string
)
View Source
var (
	PrivateKey string

	PublicKey string

	QuickMode = false

	IPv6Mode = false

	ScanAllPort = false

	ReservedString = ""

	Routines = defaultRoutines

	PingTimes = defaultPingTimes

	MaxWarpPortRange = 10000
)

Functions

func AddReserved added in v1.3.0

func AddReserved(packet []byte)

func InitHandshakePacket added in v1.1.0

func InitHandshakePacket()

func InitRandSeed

func InitRandSeed()

Types

type IPRanges

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

type MessageInitiation added in v1.3.0

type MessageInitiation struct {
	Type      uint8
	Reserved  [3]byte
	Sender    uint32
	Ephemeral device.NoisePublicKey
	Static    [device.NoisePublicKeySize + poly1305.TagSize]byte
	Timestamp [tai64n.TimestampSize + poly1305.TagSize]byte
	MAC1      [blake2s.Size128]byte
	MAC2      [blake2s.Size128]byte
}

type UDPAddr

type UDPAddr struct {
	IP   *net.IPAddr
	Port int
}

func (*UDPAddr) FullAddress

func (i *UDPAddr) FullAddress() string

func (*UDPAddr) ToUDPAddr

func (i *UDPAddr) ToUDPAddr() (addr *net.UDPAddr)

type Warping

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

func NewWarping

func NewWarping() *Warping

func (*Warping) Run

func (w *Warping) Run() utils.PingDelaySet

Jump to

Keyboard shortcuts

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