-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add support for I2P torrents #10
Comments
Metadata collection is done through curl, which does not support i2p as far as I can tell. |
However, only http and https metadata collection is done through curl. If I2P support was implemented for other types of torrents, would that work for you? |
It would be for I2P torrents only, not for normal torrents |
Sorry, I'm not quite sure how an I2P torrent is different than a normal one - is there a different format? I had assumed it was just a proxy type. |
Yes it is just a proxy type, but I don't know how metadata collection can be done... Maybe @str4d could help here to give some details ^^ (He is an I2P developer) |
Is it possible I2P torrents are already supported? Looking in |
In libtorrent-rasterbar it is just a type of proxy. Also, when saying I2P proxy, in fact it is the address of the SAM TCP bridge which communicates with the I2P router. What I said is that I don't know how metadata collection could be done using curl... |
Does an I2P torrent start with |
It is like normal torrents, it just uses I2P trackers and also I2P peers, but it should use I2P to get the file if an url is specified |
@PlasmaPower an I2P torrent is a regular torrent running over the I2P network. In fact, if there are bridging nodes (torrent peers connected both to clearnet and I2P swarms) then a clearnet magnet link or torrent file can often be opened up with an I2P torrent client. See the documentation for further details, although most of that should be abstracted behind libtorrent. And yes, when the libtorrent documentation refers to "I2P proxy" it really means "I2P SAM API", because that is the API that libtorrent is using to make I2P connections via the user's I2P router. If you separately wanted to connect to trackers outside of libtorrent, then you could use the I2P HTTP proxy (which by default is |
I think I2P support should be in the latest version of my proxy support PR. Could someone check if it works? |
@PlasmaPower |
@donat-b If you pass Edit: Oh, also, you might need a proxy hostname+port (specified with
|
@PlasmaPower no errors or anything suspicious. It's just not receiving anything, I guess. |
@donat-b with the config options in that PR, I believe you need to run:
ie. SAM port must be specified, and I don't believe the @PlasmaPower |
@str4d I'll look into implementing a default, but yeah, that's what I edited into my post. Also, yes the |
I've added a default for i2p proxies. |
I've gotten i2pd setup, and metadata collection through i2p is now working. However, it seems to stall whenever you try to |
In your setup you should make sure you enabled SAM, because by default it isn't |
I enabled SAM and ensured that the port was open, but still nothing when I try to |
Oh, also, it's really annoying because the |
@PlasmaPower that's exactly the result I have. |
Just FYI, I2P has launched a development program aimed at helping developers integrate I2P into their apps. If you'd like some help with this in July during our Apps month, let me know! We are currently in APIs month, and have a contributor looking at updating/improving libtorrent's I2P support. |
It would be cool to be able to use BTFS with I2P torrents :)
Maybe #9 could be updated to add I2P support? Because libtorrent-rasterbar support I2P_proxy option: http://www.libtorrent.org/reference-Settings.html and you could also add this option
allow_i2p_mixed
http://www.libtorrent.org/reference-Settings.html#allow_i2p_mixedThe text was updated successfully, but these errors were encountered: