From 3f6a4f846e6af8235190d920784394b03bba0bf2 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 24 Oct 2008 08:11:17 +0000 Subject: [PATCH] fixes to default features in session constructor --- src/session.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/session.cpp b/src/session.cpp index 893090a5e..64a39e08c 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -150,7 +150,11 @@ namespace libtorrent if (flags & start_default_features) { start_upnp(); - start_upnp(); + start_natpmp(); +#ifndef TORRENT_DISABLE_DHT + start_dht(); +#endif + start_lsd(); } } @@ -185,6 +189,10 @@ namespace libtorrent { start_upnp(); start_natpmp(); +#ifndef TORRENT_DISABLE_DHT + start_dht(); +#endif + start_lsd(); } }