Bug 497509

Summary: Ktorrent uses all interfaces even when restricted to VPN interface.
Product: [Applications] ktorrent Reporter: Eric B <ericb>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eric B 2024-12-15 15:04:25 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY

Even when ktorrent is configured to use tun0 (vpn interface) if the vpn is not present, it will switch to another interface.  If the vpn drops while torrenting, ktorrent automatically switches to another interface.


STEPS TO REPRODUCE
1.  In network settings, select tun0 and apply
2.   disconnect vpn and observer ktorrent behaviour.
3. 

OBSERVED RESULT
ktorrent continues to download.  If ktorrent is started without a vpn present, it will begin downloading.

EXPECTED RESULT
Ktorrent should immediately stop downloading or maintaining any internet connection once the vpn interface goes down.   ktorrent should not start if vpn interface is not present.
SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma:   Debian Bookworm KDE Frameworks Version 5.103.0
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION