mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- Set DHT Port only when DHT is enabled
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
- BUGFIX: Threads are now stopped cleanly before their destruction
|
- BUGFIX: Threads are now stopped cleanly before their destruction
|
||||||
- BUGFIX: Create Options object only when necessary (to save memory)
|
- BUGFIX: Create Options object only when necessary (to save memory)
|
||||||
- BUGFIX: Let libtorrent store the torrent handles (save memory)
|
- BUGFIX: Let libtorrent store the torrent handles (save memory)
|
||||||
|
- BUGFIX: Set DHT Port only when DHT is enabled
|
||||||
- I18N: Better internationalization thanks to dynamic text support
|
- I18N: Better internationalization thanks to dynamic text support
|
||||||
- COSMETIC: Replaced OSD messages by Qt4.2 systray messages
|
- COSMETIC: Replaced OSD messages by Qt4.2 systray messages
|
||||||
|
|
||||||
|
|||||||
@@ -1191,11 +1191,11 @@ void GUI::configureSession(bool deleteOptions){
|
|||||||
// DHT (Trackerless)
|
// DHT (Trackerless)
|
||||||
if(options->isDHTEnabled()){
|
if(options->isDHTEnabled()){
|
||||||
BTSession.enableDHT();
|
BTSession.enableDHT();
|
||||||
|
// Set DHT Port
|
||||||
|
BTSession.setDHTPort(options->getDHTPort());
|
||||||
}else{
|
}else{
|
||||||
BTSession.disableDHT();
|
BTSession.disableDHT();
|
||||||
}
|
}
|
||||||
// Set DHT Port
|
|
||||||
BTSession.setDHTPort(options->getDHTPort());
|
|
||||||
if(!options->isPeXDisabled()){
|
if(!options->isPeXDisabled()){
|
||||||
qDebug("Enabling Peer eXchange (PeX)");
|
qDebug("Enabling Peer eXchange (PeX)");
|
||||||
BTSession.enablePeerExchange();
|
BTSession.enablePeerExchange();
|
||||||
|
|||||||
Reference in New Issue
Block a user