mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 19:40:18 -07:00
No longer fallback to ANY interface if the user-selected interface cannot be found (closes #143)
This commit is contained in:
parent
573dac0b91
commit
26314fae01
2 changed files with 9 additions and 7 deletions
|
@ -1917,12 +1917,6 @@ void QBtSession::setListeningPort(int port) {
|
|||
if (!network_iface.isValid()) {
|
||||
qDebug("Invalid network interface: %s", qPrintable(iface_name));
|
||||
addConsoleMessage(tr("The network interface defined is invalid: %1").arg(iface_name), "red");
|
||||
addConsoleMessage(tr("Trying any other network interface available instead."));
|
||||
#if LIBTORRENT_VERSION_MINOR > 15
|
||||
s->listen_on(ports, ec);
|
||||
#else
|
||||
s->listen_on(ports);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
QString ip;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue