mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-12 18:24:58 +08:00
Migrate away from deprecated settings
Libtorrent has deprecated `upnp_ignore_nonrouters` in https://github.com/arvidn/libtorrent/pull/4251
This commit is contained in:
parent
b0844800b8
commit
3fce1db2eb
@ -1088,7 +1088,9 @@ void Session::initializeNativeSession()
|
|||||||
// turn them off before `lt::session` ctor to avoid split second effects
|
// turn them off before `lt::session` ctor to avoid split second effects
|
||||||
pack.set_bool(lt::settings_pack::enable_upnp, false);
|
pack.set_bool(lt::settings_pack::enable_upnp, false);
|
||||||
pack.set_bool(lt::settings_pack::enable_natpmp, false);
|
pack.set_bool(lt::settings_pack::enable_natpmp, false);
|
||||||
|
#if (LIBTORRENT_VERSION_NUM < 10204)
|
||||||
pack.set_bool(lt::settings_pack::upnp_ignore_nonrouters, true);
|
pack.set_bool(lt::settings_pack::upnp_ignore_nonrouters, true);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (LIBTORRENT_VERSION_NUM < 10200)
|
#if (LIBTORRENT_VERSION_NUM < 10200)
|
||||||
// Disable support for SSL torrents for now
|
// Disable support for SSL torrents for now
|
||||||
|
Loading…
Reference in New Issue
Block a user