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:
parent
554eab50bb
commit
2fd69a21b0
@ -1043,7 +1043,7 @@ void Session::initializeNativeSession()
|
||||
#endif
|
||||
|
||||
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("HTTP User-Agent is '%1'").arg(USER_AGENT));
|
||||
|
Loading…
x
Reference in New Issue
Block a user