Skip to content
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 I2P support #18717

Merged
merged 2 commits into from
Mar 21, 2023
Merged

Add I2P support #18717

merged 2 commits into from
Mar 21, 2023

Conversation

glassez
Copy link
Member

@glassez glassez commented Mar 17, 2023

Closes #16257.
Supersedes #18462.

@glassez glassez added GUI GUI-related issues/changes Core labels Mar 17, 2023
@glassez glassez added this to the 4.6.0 milestone Mar 17, 2023
@glassez glassez mentioned this pull request Mar 17, 2023
@Vort
Copy link
Contributor

Vort commented Mar 17, 2023

Looks like peer list is still having problems.
However, download works and this is good.
Thanks.

qbt_ccb71da7

@glassez
Copy link
Member Author

glassez commented Mar 18, 2023

Looks like peer list is still having problems.

Yes, I haven't managed to fix it yet.

@glassez glassez marked this pull request as ready for review March 18, 2023 12:51
@glassez
Copy link
Member Author

glassez commented Mar 18, 2023

@Vort
Could you test it again?

@glassez glassez requested a review from a team March 18, 2023 12:52
@Vort
Copy link
Contributor

Vort commented Mar 18, 2023

Peer list still have no I2P addresses, however, instead of single peer, now several peers can be displayed.
For me, it is enough for initial support:
qbt_e570ba72
(attentive reader can notice that something is wrong here, but it can be addressed later too)

@glassez
Copy link
Member Author

glassez commented Mar 18, 2023

Peer list still have no I2P addresses

They are probably inaccessible.
#16257 (comment)
arvidn/libtorrent#7346

@glassez glassez requested review from a team and removed request for a team March 20, 2023 12:38
Copy link
Contributor

@thalieht thalieht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't test.

@glassez glassez merged commit cdded6c into qbittorrent:master Mar 21, 2023
@glassez glassez deleted the i2p branch March 21, 2023 05:33
@jiigen
Copy link

jiigen commented Mar 21, 2023

Peer list still have no I2P addresses

They are probably inaccessible. #16257 (comment) arvidn/libtorrent#7346

arvidn/libtorrent#7346 (comment)

@jiigen
Copy link

jiigen commented Mar 22, 2023

Maybe disabling pex and dht for i2p torrents would be a good idea too as these are not supported over i2p by libtorrent yet and, even if i'm not sure, they can break anonimity by contacting clearnet peers. Probalbly @Vort can know more about this.

@Vort
Copy link
Contributor

Vort commented Mar 22, 2023

I disabled DHT, PEX and LSD manually and advise users to do the same.
However, once these features will be correctly implemented, there will be need to do exactly opposite.
So that's why I'm not sure if there is need to spread such information.

@jiigen
Copy link

jiigen commented Mar 22, 2023

I disabled DHT, PEX and LSD manually and advise users to do the same. However, once these features will be correctly implemented, there will be need to do exactly opposite. So that's why I'm not sure if there is need to spread such information.

Maybe adding them as temporary "greyed out" options defaulting to disabled till these feature will be implemented?
Edit: I don't know if someone is working to add dht and/or pex over i2p to libtorrent actually so I fear that they will not be implemented soon

@Vort
Copy link
Contributor

Vort commented Mar 22, 2023

Maybe adding them as temporary "greyed out" options defaulting to disabled till these feature will be implemented?

I expect they may be useful in mixed mode.
I doubt that it will be easy to implement such graying out logic correctly.
However, developers may know better.

@jiigen
Copy link

jiigen commented Mar 22, 2023

Maybe adding them as temporary "greyed out" options defaulting to disabled till these feature will be implemented?

I expect they may be useful in mixed mode. I doubt that it will be easy to implement such graying out logic correctly. However, developers may know better.

I thought about something in the ui like:

  • Mixed Mode
  • Peer Exchange
  • DHT
  • LSD

With the first that enables the others but shouldnt be possible to enable the others without the first till they are implemented or maybe hidden (and disabled) unless one select mixed mode. @glassez I guess that Qt allows such kind of interactions?
Just an idea...

@xavier2k6
Copy link
Member

@glassez This PR & PR#19079 fully closes #2682 right?

@glassez
Copy link
Member Author

glassez commented Jun 5, 2023

@glassez This PR & PR#19079 fully closes #2682 right?

Apparently, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core GUI GUI-related issues/changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I2P support
5 participants