Skip to content

Include crate version in client fingerprint portion of peer_id#374

Merged
ikatson merged 2 commits intoikatson:mainfrom
av-gal:main
Jun 2, 2025
Merged

Include crate version in client fingerprint portion of peer_id#374
ikatson merged 2 commits intoikatson:mainfrom
av-gal:main

Conversation

@av-gal
Copy link
Copy Markdown
Contributor

@av-gal av-gal commented Jun 2, 2025

Include librqbit's version number in its peer ids by default. Allow applications to specify a custom client fingerprint, and introduce a function to generate Azereus-style fingerprints from a two byte string and version tuple. Also bump librqbit-core to 5.0, since this PR changes its public API.

@ikatson
Copy link
Copy Markdown
Owner

ikatson commented Jun 2, 2025

This is great, thanks! I wanted to do this for a long time but never got to it.

One minor thing: can you please change getrandom create to random, cause we use rand already everywhere.

@ikatson ikatson merged commit 3fa55bd into ikatson:main Jun 2, 2025
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants