torrenttools icon indicating copy to clipboard operation
torrenttools copied to clipboard

`torrenttools show infohash --protocol=2` should not show v1 hash

Open milahu opened this issue 1 year ago • 0 comments

torrenttools v0.6.2 always returns the v1 hash

$ torrenttools show infohash --protocol=1 test.torrent
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

$ torrenttools show infohash --protocol=2 test.torrent
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

$ torrenttools show infohash --protocol=3 test.torrent
Error: Invalid bittorrent protocol: 3

expected: torrenttools show infohash --protocol=2 should print nothing on v1-only torrents

milahu avatar Jul 23 '24 13:07 milahu