-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Fix outgoing interfaces not getting assigned in case addr is not null. #12430
Fix outgoing interfaces not getting assigned in case addr is not null. #12430
Conversation
Can you confirm you get the expected behavior (i.e. the same as |
@FranciscoPombal Yes I can confirm that the problem is solved. Now it is making outgoing connections only from the IP I selected in options. It works correctly whether I choose the IP only, or whether I choose both IP and interface. |
fc7f3ed
to
53affcb
Compare
@Chocobo1 done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit messages should be formatted according to the project Coding Guidelines.
53affcb
to
41bc007
Compare
@glassez better ? apologies, I'm new to this repo. |
Don't think so... I suppose "in primary branch" refers to implementation details (i.e. to "if-else"). It confuses when reading it itself. But when you read the code it becomes meaningless since code clearly shows it. |
Assignment was missing in main branch of condition statement. Closes qbittorrent#12421
41bc007
to
bf1c9e3
Compare
@glassez ok, is it clearer now ? :-) |
@rwasef1830 |
@rwasef1830 |
I will investigate. Maybe a special case is needed for handling "any interface" + "any address" when handling outgoing connections, it's possible that a blank or empty or invalid address is being set or something. I will investigate. |
@Chocobo1 ok the problem is that when selecting "any interface" "any address", outgoing interfaces is set to 0.0.0.0 and :: and that makes all outgoing connections fail (maybe because not valid IP address). Solution is to skip setting outgoing interface when it is equal 0.0.0.0 or [::]. I will make a new pull request. |
Fixes #12421