mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Fix libtorrent 0.15.x compilation.
This commit is contained in:
@@ -1999,8 +1999,10 @@ void QBtSession::setListeningPort(int port) {
|
|||||||
s->listen_on(ports, "0.0.0.0");
|
s->listen_on(ports, "0.0.0.0");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if LIBTORRENT_VERSION_NUM >= 1600
|
||||||
if (ec)
|
if (ec)
|
||||||
addConsoleMessage(tr("qBittorrent failed to listen on any interface port: %1. Reason: %2", "e.g: qBittorrent failed to listen on any interface port: TCP/6881. Reason: no such interface" ).arg(QString::number(port)).arg(misc::toQStringU(ec.message())), "red");
|
addConsoleMessage(tr("qBittorrent failed to listen on any interface port: %1. Reason: %2", "e.g: qBittorrent failed to listen on any interface port: TCP/6881. Reason: no such interface" ).arg(QString::number(port)).arg(misc::toQStringU(ec.message())), "red");
|
||||||
|
#endif
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user