From 7469f9795310470e008c9b60255ea1d3b0daae31 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 1 Aug 2007 08:47:58 +0000 Subject: [PATCH] - Really enable UPnP/LSD/NAT-PMP (recently disabled as a default in libtorrent) --- TODO | 1 - src/bittorrent.cpp | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 02ec8b506..52bb8d4ab 100644 --- a/TODO +++ b/TODO @@ -44,7 +44,6 @@ - Add checking icon to documentation * beta3 - Translations update (IN PROGRESS) - - Really enable UPnP/LSD/NAT-PMP (recently disabled as a default in libtorrent) - make use of finishedChecking alert if hydri implements it - Clean up delayed progress column sorting code - Clean up pause after checking code diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 068acaeb0..25b2c3364 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -52,6 +52,10 @@ bittorrent::bittorrent(){ s = new session(fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0)); // Set severity level of libtorrent session s->set_severity_level(alert::info); + // Enable LSD/UPnP/NAT-PMP + s->start_lsd(); + s->start_natpmp(); + s->start_upnp(); // DHT (Trackerless), disabled until told otherwise DHTEnabled = false; // Enabling metadata plugin