Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upPersist IDs and port numbers between restarts #353
Comments
This comment has been minimized.
This comment has been minimized.
|
Definitely persist at least the peer ID prefix, or you won't be able to have webtorrent be a whitelisted client on private torrent trackers! |
This comment has been minimized.
This comment has been minimized.
|
Yep, we have a consistent prefix! It's |
This comment has been minimized.
This comment has been minimized.
|
I thought so! I might suggest that you append the version number of webtorrent to the prefix, so that a specific stable version of the client can be whitelisted. |
This comment has been minimized.
This comment has been minimized.
|
Yep, we already do that. You can see the code here: https://github.com/feross/webtorrent/blob/5f3e73f9937228fac0b9974de7db5b4fbb16b1bf/index.js#L61 |
This comment has been minimized.
This comment has been minimized.
|
... I think I knew that. >.< Well, great! :D |
This comment has been minimized.
This comment has been minimized.
|
Transmission persists at least a part of the peerid, like https://trac.transmissionbt.com/wiki/PeerId They generate a new peerID every six hours though, see https://trac.transmissionbt.com/changeset/13933 |
This comment has been minimized.
This comment has been minimized.
|
That part of the Transmission ID ( Interesting that they generate a new ID every six hours. Perhaps that's to prevent long-term user tracking? In any case, it looks like there's probably no benefit (and possibly privacy harm) to preserving the peer ID over the long term. Good to know. |
Things that can be persisted between restarts:
The DHT needs to be persisted (#72), and that means our DHT node ID shouldn't change between different runs of the webtorrent program.
Persisting the torrent client listen port and node ID might get us more peers (if we're still listed trackers and DHTs). Should we persist the torrent client peer ID too?
Are there privacy implications to re-using the peer ID? What does Transmission do?