Documentation
¶
Index ¶
- Constants
- Variables
- func Compare(a, b string) int
- func GetCount() int
- func GetIndex(ver string) int
- func GetLatest() string
- func GetLatestIndex() int
- func GetMinVersion(SecureMode bool) string
- func GetVersion(index int) string
- func PrintVersion(ver int)
- func SupportsP2P(ver int, clientVersion string) bool
- func SupportsRemoteUpdate(clientVersion string) bool
Constants ¶
const MinVer = 7
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.
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.
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.
const VERSION = "0.34.9"
Variables ¶
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
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 GetLatestIndex ¶ added in v0.27.0
func GetLatestIndex() int
func GetMinVersion ¶ added in v0.30.0
func GetVersion ¶
func PrintVersion ¶ added in v0.32.2
func PrintVersion(ver int)
func SupportsP2P ¶ added in v0.34.8
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
SupportsRemoteUpdate reports whether a client announcing clientVersion acts on an update request.
Types ¶
This section is empty.