-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZeroNet Sharing Protocol Transport Abstraction #517
Conversation
Current coverage is 48.51% (diff: 50.00%)@@ master #517 diff @@
==========================================
Files 55 55
Lines 6579 6586 +7
Methods 0 0
Messages 0 0
Branches 1379 1382 +3
==========================================
+ Hits 3188 3195 +7
+ Misses 2993 2991 -2
- Partials 398 400 +2
|
I think you's also need to change the ZeroAnnounce to request only onion peers from the Boostrapper. As is, the CLI argument naming and semantics are a bit hard to understand for somebody who did not read the code. I would do something like this, instead:
Then it is all simple to understand and use, and straightforward to extend to other transports, like I2P. The only subtlety is that with --tor=always and ipv4 in --transports, clearnet (ipv4) trackers will be accessed via Tor exit nodes. Intuitively, to prevent that, simply exclude ipv4 from --transports list, in which case only trackers with Tor addresses would be accessed (as of now, this only includes the zero://*.onion super-nodes that run the Bootstrapper plugin). As far as peers go, the behaviour is obvious. The tracker protocol (zero:// aka ZeroAnnounce) should not be mixed into this. Also, the peer protocols (PEX) should not be mixed into this. Both, because the same protocol can return peer addresses in multiple transports. These are orthogonal concerns. |
@radfish Also change ZeroAnnounce: I agree. I also agree with your |
…ly in "pex" command.
So, I'm just fixing the current implementation towards benchmarking the siteDownload command the same way it is implemented in libzeronet (pex_only, onion_only). I talked to @shortcutme about merging the "pex" and "announce" commands but I will need more time to think about it and propose something that is backward compatible and will also simplify the code (both commands should be handled by the same code). |
I am closing and re-opening this in its own branch. |
Self-explanatory.
libzeronet will not support ipv4 (even through Tor exit nodes) nor BitTorrent trackers for hardened security and improved decentralization.