Browse Source

Add clarifying comment.

adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
b3e4d8487b
  1. 2
      src/core/bittorrent/session.cpp

2
src/core/bittorrent/session.cpp

@ -1399,6 +1399,8 @@ void Session::networkOnlineStateChanged(const bool online) @@ -1399,6 +1399,8 @@ void Session::networkOnlineStateChanged(const bool online)
void Session::networkConfigurationChange(const QNetworkConfiguration& cfg)
{
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())
return;
const QString changedInterface = cfg.name();

Loading…
Cancel
Save