version

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MPL-2.0 Imports: 4 Imported by: 5 modules, 7 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

Overview

Package version provides default versions, user-agents etc. for client identification.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultExtendedHandshakeClientVersion string
	// This should be updated when client behaviour changes in a way that other peers could care
	// about.
	DefaultBep20Prefix   = "-GT0003-"
	DefaultHttpUserAgent string
	DefaultUpnpId        string

	// libtorrent/src/http_tracker_connection.cpp
	AnonymousHttpUserAgent = "curl/7.81.0"

	// ExtendedHandshakeMessage struct: V string `bencode:"v,omitempty"`
	// so the "v" field is omitted when empty
	AnonymousExtendedHandshakeClientVersion = ""

	AnonymousBep20Prefix string

	// libtorrent/src/upnp.cpp
	// NewPortMappingDescription is empty
	AnonymousUpnpId = ""
)

Functions

func GenerateFingerprint added in v1.62.0

func GenerateFingerprint(name string, major, minor, revision, tag int) string

GenerateFingerprint builds an 8-byte fingerprint string from client info.

Example: GenerateFingerprint("LT", 2, 1, 0, 0) → "-LT2100-"

Types

This section is empty.

Jump to

Keyboard shortcuts

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