arvidn / libtorrent

an efficient feature complete C++ bittorrent implementation

Home Page:http://libtorrent.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I2P SAM ID isn't persistent

ExperiBass opened this issue · comments

It appears libtorrent doesn't reuse SAM session IDs. This has the effect of creating a new destination each time a client is restarted, which is different from what i'm used to (for example, bitcoind).
This also seems to confuse tracker2.postman.i2p, as you appear as a new client to it.
I tested this with client_test --i2p_hostname="localhost" --i2p_port=7656 "magnet:?xt=urn:btih:37533aa1c010678587a4a2966e29ad56f0bd0043&dn=I2P%2B+2.3.0%2B+%28i2pupdate.zip%29&tr=http://tracker2.postman.i2p/announce.php".

libtorrent version (or branch): c2012b0
platform/architecture: Linux x86_64
compiler and compiler version: GCC 13.1.1

commented

From documentation it looks like SAM ID and destination are generated independently and to use fixed destination, all needed keys should be specified in session creation request, which is non-trivial.
From usability point of view, dynamic destination is preferred mode of operation - it increases anonymity.
Anyway, even if such a feature were to be implemented, it should be optional.

Anyway, even if such a feature were to be implemented, it should be optional.

yeah, thinking over it again i agree. i'll close this issue.