Browse Source

- Fix some other DHT port issues

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
e885ee0d35
  1. 2
      src/bittorrent.cpp
  2. 2
      src/options_imp.cpp

2
src/bittorrent.cpp

@ -363,7 +363,7 @@ void Bittorrent::configureSession() { @@ -363,7 +363,7 @@ void Bittorrent::configureSession() {
if(enableDHT(true)) {
int dht_port;
if(Preferences::isDHTPortSameAsBT())
dht_port = new_listenPort;
dht_port = 0;
else
dht_port = Preferences::getDHTPort();
setDHTPort(dht_port);

2
src/options_imp.cpp

@ -890,8 +890,6 @@ bool options_imp::systrayIntegration() const{ @@ -890,8 +890,6 @@ bool options_imp::systrayIntegration() const{
}
int options_imp::getDHTPort() const {
if(isDHTPortSameAsBT())
return 0;
return spinDHTPort->value();
}

Loading…
Cancel
Save