version

package
v1.54.10 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

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.54.8

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