qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.96k stars 3.95k forks source link

qbittorrent-nox add multiple interfaces incase 1 goes down #11290

Open recoi1er opened 5 years ago

recoi1er commented 5 years ago

Please provide the following information

qBittorrent version and Operating System

4.1.5 WebUI on QNAP 4.4.1

If on linux, libtorrent-rasterbar and Qt version

(type here)

What is the problem

Have a vpn service with a failover incase the first vpn fails, bind to both interfaces so that if the first one fails it moves to the 2nd one and does not stop downloading

What is the expected behavior

Wanted to share that you can add multiple interfaces incase one connection fails, I added 2 interfaces in case one of my vpn's fails, the other takes its place and if both fail then nothing happens as intended (where XXX / YYY is the interface name and note that both lines must be added or it will not work):

[Preferences]
Connection\Interface=XXX
Connection\InterfaceName=XXX
Connection\Interface=YYY
Connection\InterfaceName=YYY

Steps to reproduce

navigate to Qbittorrent.conf (~/.config/qBittorrent/qBittorrent.conf) and modify with a text editor, add the lines below [Preferences] and then save the file. Shutdown Qbittorrent and restart it to take effect. This only works for multiple interfaces by modifying the .conf file, does not work in the GUI

Extra info(if any)

(type here)

FranciscoPombal commented 4 years ago

Can you please confirm if this works in the latest version? Because if this works, it's completely by accident and might be a symptom of more bugs in the code.

FranciscoPombal commented 4 years ago

@glassez ping, just because this seems rather important.

glassez commented 4 years ago

@glassez ping, just because this seems rather important.

Sorry, this part of application is out of my scope. I'm even not sure I understand what's the problem described here. Can you rephrase it in a more formal way?

recoi1er commented 4 years ago

@glassez ping, just because this seems rather important.

Sorry, this part of application is out of my scope. I'm even not sure I understand what's the problem described here. Can you rephrase it in a more formal way?

In the QNAP OS, I have 2 VPN’s setup in case one fails. I was able to use the conf file to add both of them so if one fails and the other takes over qbittorrent doesn’t care and keeps on using the vpn as I’ve set it to only work when connected to the VPN, I was bringing it up as an issue to be added into the GUI but what FranciscoPom also brings up is a good point as well

FranciscoPombal commented 4 years ago

@glassez

Sorry, this part of application is out of my scope. I'm even not sure I understand what's the problem described here. Can you rephrase it in a more formal way?

It seems that if there is more than one network interface defined in the config file (see code block example in the OP), qBittorrent is silently falling back to the extra defined interfaces in case one fails. Or, rather than falling back in case of failure, maybe it's even connecting to all of them from the start. This is unexpected behavior, as far as I know.