- Set DHT Port only when DHT is enabled

This commit is contained in:
Christophe Dumez 2007-03-10 18:20:13 +00:00
parent 7fac73b76d
commit fb54c035a7
2 changed files with 3 additions and 2 deletions

View file

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