-
-
Notifications
You must be signed in to change notification settings - Fork 977
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
setting a proxy overrides listen_interfaces #4498
Conversation
Does "SSL torrents" refer to using HTTPS trackers or to BEP 35? |
UPDATE: I didn't mean "the latter". I meant this feature. |
As mentioned in the QBittorrent issue #11735, I compiled the content of the PR and it "fixed" the issue in QBittorrent. I am running Manjaro Linux and QBittorrent 4.2.3 (community build for Manjaro). I think we are yet to see a Windows user compiling it too and corroborating my findings. Cheers and kudos for the work provided, fantastic! After that, I am sorry, I am really not well-versed enough in C++ to be in a position to do any kind of code reviews... I am a dev too, only in another language... |
thanks for testing! I will still need to figure out the issue in CI before landing this (and other, more urgent, issues have come up the last few days) |
@arvidn the situation with qbittorrent/qBittorrent#11735 seems to have improved with this patch (users have been testing with a test build that includes it thanks to @xavier2k6), but there are still UDP tracker issues apparently. |
6090398
to
d326a02
Compare
@xavier2k6 I believe that last commit may have addressed the "already open" issue |
ok, will download from here & compile a new qBittorrent file for testing in #11735 |
those last force pushes were just rebasing this on top of latest I think this is in a good state now, ready to land. Anyone wanting to test would be appreciated! |
A build of qBittorrent with this patch will soon land in this thread qbittorrent/qBittorrent#11735, hopefully some of the people affected by the proxy issue will test it out. |
Hi again, I recompiled the latest of proxy-interface and tested again. Working correctly here. |
The idea with this patch is to simplify the proxy handling. Instead of a proxy being treated as something independent from the network interfaces, it's treated as a network interface itself.
It makes sense that a single proxy really acts as an access point to the internet and when configuring one, whether your machine is multi-homed or not is not relevant, everything is funneled through the proxy.
It simplifies things like:
This change, while cleaning up some common cases, also bans some rare cases. With this patch it will not be possible to combine running SSL torrents with a proxy. The SSL listen socket is also treated as a
listen_socket_t
. It will no longer be possible to combine multiple listen sockets with a proxy (mostly because there's only one proxy that can be configured).To make this fully generic, each listen interface (i.e. entry in
listen_interfaces
setting) would have to have its own proxy configuration. That hardly seems worth the trouble though.