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
GenerateFingerprint builds an 8-byte fingerprint string from client info.
Example: GenerateFingerprint("LT", 2, 1, 0, 0) → "-LT2100-"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.