mirror of https://github.com/aria2/aria2
2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that DHT is always enabled when BitTorrent Magnet URI is supplied. Notify user that they should consider enabling DHT if they use Magnet URI. * src/RequestGroup.ccpull/1/head
parent
4100ba77c3
commit
7bc6fc54a1
|
@ -1,3 +1,10 @@
|
||||||
|
2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Fixed the bug that DHT is always enabled when BitTorrent Magnet
|
||||||
|
URI is supplied. Notify user that they should consider enabling
|
||||||
|
DHT if they use Magnet URI.
|
||||||
|
* src/RequestGroup.cc
|
||||||
|
|
||||||
2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Added --disable-ipv6 option to disable IPv6.
|
Added --disable-ipv6 option to disable IPv6.
|
||||||
|
|
|
@ -277,9 +277,14 @@ void RequestGroup::createInitialCommand
|
||||||
SharedHandle<BtProgressInfoFile>
|
SharedHandle<BtProgressInfoFile>
|
||||||
(progressInfoFile))));
|
(progressInfoFile))));
|
||||||
if(metadataGetMode) {
|
if(metadataGetMode) {
|
||||||
std::deque<Command*> dhtCommands;
|
if(_option->getAsBool(PREF_ENABLE_DHT)) {
|
||||||
DHTSetup().setup(dhtCommands, e, _option.get());
|
std::deque<Command*> dhtCommands;
|
||||||
e->addCommand(dhtCommands);
|
DHTSetup().setup(dhtCommands, e, _option.get());
|
||||||
|
e->addCommand(dhtCommands);
|
||||||
|
} else {
|
||||||
|
_logger->notice("For BitTorrent Magnet URI, enabling DHT is strongly"
|
||||||
|
" recommended. See --enable-dht option.");
|
||||||
|
}
|
||||||
|
|
||||||
SharedHandle<CheckIntegrityEntry> entry
|
SharedHandle<CheckIntegrityEntry> entry
|
||||||
(new BtCheckIntegrityEntry(this));
|
(new BtCheckIntegrityEntry(this));
|
||||||
|
|
Loading…
Reference in New Issue