From e92f6a3d962d26d91533e6229b88731ccf9e0512 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 30 Dec 2009 16:49:38 +0000 Subject: [PATCH] Display the correct DHT port in the log window --- src/bittorrent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 8357843ab..1cc9ceb5e 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -352,6 +352,7 @@ void Bittorrent::configureSession() { else dht_port = Preferences::getDHTPort(); 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")); } else { addConsoleMessage(tr("DHT support [OFF]"), QString::fromUtf8("red"));