Browse Source

- Set DHT Port only when DHT is enabled

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
fb54c035a7
  1. 1
      Changelog
  2. 4
      src/GUI.cpp

1
Changelog

@ -23,6 +23,7 @@ @@ -23,6 +23,7 @@
- BUGFIX: Threads are now stopped cleanly before their destruction
- BUGFIX: Create Options object only when necessary (to 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
- COSMETIC: Replaced OSD messages by Qt4.2 systray messages

4
src/GUI.cpp

@ -1191,11 +1191,11 @@ void GUI::configureSession(bool deleteOptions){ @@ -1191,11 +1191,11 @@ void GUI::configureSession(bool deleteOptions){
// DHT (Trackerless)
if(options->isDHTEnabled()){
BTSession.enableDHT();
// Set DHT Port
BTSession.setDHTPort(options->getDHTPort());
}else{
BTSession.disableDHT();
}
// Set DHT Port
BTSession.setDHTPort(options->getDHTPort());
if(!options->isPeXDisabled()){
qDebug("Enabling Peer eXchange (PeX)");
BTSession.enablePeerExchange();

Loading…
Cancel
Save