mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Initialize session with session_params class
The old way of initialization is deprecated in libtorrent 2.0.
This commit is contained in:
@@ -1043,7 +1043,7 @@ void Session::initializeNativeSession()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
loadLTSettings(pack);
|
loadLTSettings(pack);
|
||||||
m_nativeSession = new lt::session {pack, lt::session_flags_t {0}};
|
m_nativeSession = new lt::session {lt::session_params {pack, {}}};
|
||||||
|
|
||||||
LogMsg(tr("Peer ID: ") + QString::fromStdString(peerId));
|
LogMsg(tr("Peer ID: ") + QString::fromStdString(peerId));
|
||||||
LogMsg(tr("HTTP User-Agent is '%1'").arg(USER_AGENT));
|
LogMsg(tr("HTTP User-Agent is '%1'").arg(USER_AGENT));
|
||||||
|
|||||||
Reference in New Issue
Block a user