1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 13:04:23 +00:00

Initialize session with session_params class

The old way of initialization is deprecated in libtorrent 2.0.
This commit is contained in:
Chocobo1 2020-09-09 14:53:21 +08:00
parent 554eab50bb
commit 2fd69a21b0
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -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));