mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Display the correct DHT port in the log window
This commit is contained in:
@@ -352,6 +352,7 @@ void Bittorrent::configureSession() {
|
|||||||
else
|
else
|
||||||
dht_port = Preferences::getDHTPort();
|
dht_port = Preferences::getDHTPort();
|
||||||
setDHTPort(dht_port);
|
setDHTPort(dht_port);
|
||||||
|
if(dht_port == 0) dht_port = new_listenPort;
|
||||||
addConsoleMessage(tr("DHT support [ON], port: UDP/%1").arg(dht_port), QString::fromUtf8("blue"));
|
addConsoleMessage(tr("DHT support [ON], port: UDP/%1").arg(dht_port), QString::fromUtf8("blue"));
|
||||||
} else {
|
} else {
|
||||||
addConsoleMessage(tr("DHT support [OFF]"), QString::fromUtf8("red"));
|
addConsoleMessage(tr("DHT support [OFF]"), QString::fromUtf8("red"));
|
||||||
|
|||||||
Reference in New Issue
Block a user