mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Add clarifying comment.
This commit is contained in:
parent
bae5c6a1db
commit
b3e4d8487b
1 changed files with 2 additions and 0 deletions
|
@ -1399,6 +1399,8 @@ void Session::networkOnlineStateChanged(const bool online)
|
||||||
void Session::networkConfigurationChange(const QNetworkConfiguration& cfg)
|
void Session::networkConfigurationChange(const QNetworkConfiguration& cfg)
|
||||||
{
|
{
|
||||||
const QString configuredInterfaceName = Preferences::instance()->getNetworkInterface();
|
const QString configuredInterfaceName = Preferences::instance()->getNetworkInterface();
|
||||||
|
// Empty means "Any Interface". In this case libtorrent has binded to 0.0.0.0 so any change to any interface will
|
||||||
|
// be automatically picked up. Otherwise we would rebinding here to 0.0.0.0 again.
|
||||||
if (configuredInterfaceName.isEmpty())
|
if (configuredInterfaceName.isEmpty())
|
||||||
return;
|
return;
|
||||||
const QString changedInterface = cfg.name();
|
const QString changedInterface = cfg.name();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue