From 9d0577fa5c0cc1c4b77a168ed262e5b97fb4b1f7 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 30 Dec 2009 16:47:03 +0000 Subject: [PATCH] - Display the correct DHT port in the console --- src/bittorrent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 3d6e95f9f..061b723b1 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -397,6 +397,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"));