mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
- Set DHT Port only when DHT is enabled
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user