version

package
v0.34.10 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: GPL-3.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const MinVer = 7
View Source
const P2PMinIndex = 5

P2PMinIndex is the lowest protocol index a P2P client may use: the provider opens its P2P control streams on the tunnel, which the bridge accepts from that index on.

View Source
const P2PMinVersion = "0.34.8"

P2PMinVersion is the oldest npc release that speaks the current P2P protocol. Older clients are refused with a log entry naming this version.

View Source
const RemoteUpdateMinVersion = "0.34.9"

RemoteUpdateMinVersion is the oldest npc release that acts on an update request. Older clients treat an unknown message on the signal connection as a broken stream and reconnect, so the request is only sent from this version on.

View Source
const VERSION = "0.34.10"

Variables

View Source
var MinVersions = []string{
	"0.26.0",
	"0.27.0",
	"0.28.0",
	"0.29.0",
	"0.30.0",
	"0.31.0",
	"0.32.0",
	"0.33.0",
	"0.34.0",
}

Functions

func Compare added in v0.34.8

func Compare(a, b string) int

Compare compares two dotted versions numerically segment by segment. A leading "v" and build metadata are ignored; a pre-release suffix sorts before the release with the same numbers.

func GetCount added in v0.27.0

func GetCount() int

func GetIndex added in v0.27.0

func GetIndex(ver string) int

func GetLatest added in v0.27.0

func GetLatest() string

func GetLatestIndex added in v0.27.0

func GetLatestIndex() int

func GetMinVersion added in v0.30.0

func GetMinVersion(SecureMode bool) string

func GetVersion

func GetVersion(index int) string

func PrintVersion added in v0.32.2

func PrintVersion(ver int)

func SupportsP2P added in v0.34.8

func SupportsP2P(ver int, clientVersion string) bool

SupportsP2P reports whether a client announcing clientVersion with protocol index ver can take part in a P2P session.

func SupportsRemoteUpdate added in v0.34.9

func SupportsRemoteUpdate(clientVersion string) bool

SupportsRemoteUpdate reports whether a client announcing clientVersion acts on an update request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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