mirror of https://github.com/aria2/aria2
2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Change the default value of --metalink-servers option from `5' to `1'. * src/HelpItemFactory.cc * src/option_processing.cc * src/usage_text.hpull/1/head
parent
f596de9eec
commit
6952eef7b6
|
@ -1,3 +1,10 @@
|
||||||
|
2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
|
Change the default value of --metalink-servers option from `5' to `1'.
|
||||||
|
* src/HelpItemFactory.cc
|
||||||
|
* src/option_processing.cc
|
||||||
|
* src/usage_text.h
|
||||||
|
|
||||||
2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Reimplemented transparent metalink using Accept request header.
|
Reimplemented transparent metalink using Accept request header.
|
||||||
|
|
|
@ -383,7 +383,7 @@ TagContainerHandle HelpItemFactory::createHelpItems(const Option* op)
|
||||||
tc->addItem(item);
|
tc->addItem(item);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
HelpItemHandle item(new HelpItem(PREF_METALINK_SERVERS, TEXT_METALINK_SERVERS));
|
HelpItemHandle item(new HelpItem(PREF_METALINK_SERVERS, TEXT_METALINK_SERVERS, op->get(PREF_METALINK_SERVERS)));
|
||||||
item->addTag(TAG_METALINK);
|
item->addTag(TAG_METALINK);
|
||||||
tc->addItem(item);
|
tc->addItem(item);
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ Option* createDefaultOption()
|
||||||
op->put(PREF_DAEMON, V_FALSE);
|
op->put(PREF_DAEMON, V_FALSE);
|
||||||
op->put(PREF_SEGMENT_SIZE, Util::itos((int32_t)(1024*1024)));
|
op->put(PREF_SEGMENT_SIZE, Util::itos((int32_t)(1024*1024)));
|
||||||
op->put(PREF_LISTEN_PORT, "6881-6999");
|
op->put(PREF_LISTEN_PORT, "6881-6999");
|
||||||
op->put(PREF_METALINK_SERVERS, "5");
|
op->put(PREF_METALINK_SERVERS, "1");
|
||||||
op->put(PREF_FOLLOW_TORRENT,
|
op->put(PREF_FOLLOW_TORRENT,
|
||||||
#ifdef ENABLE_BITTORRENT
|
#ifdef ENABLE_BITTORRENT
|
||||||
V_TRUE
|
V_TRUE
|
||||||
|
|
|
@ -281,8 +281,7 @@ _(" --bt-require-crypto=true|false If true is given, aria2 doesn't accept and\n"
|
||||||
_(" -M, --metalink-file=METALINK_FILE The file path to the .metalink file.")
|
_(" -M, --metalink-file=METALINK_FILE The file path to the .metalink file.")
|
||||||
#define TEXT_METALINK_SERVERS \
|
#define TEXT_METALINK_SERVERS \
|
||||||
_(" -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n"\
|
_(" -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n"\
|
||||||
" simultaneously.\n"\
|
" simultaneously.")
|
||||||
" Default: 5")
|
|
||||||
#define TEXT_METALINK_VERSION \
|
#define TEXT_METALINK_VERSION \
|
||||||
_(" --metalink-version=VERSION The version of the file to download.")
|
_(" --metalink-version=VERSION The version of the file to download.")
|
||||||
#define TEXT_METALINK_LANGUAGE \
|
#define TEXT_METALINK_LANGUAGE \
|
||||||
|
|
Loading…
Reference in New Issue