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
pull/1/head
Tatsuhiro Tsujikawa 2008-05-05 08:32:40 +00:00
parent f596de9eec
commit 6952eef7b6
4 changed files with 10 additions and 4 deletions

View File

@ -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>
Reimplemented transparent metalink using Accept request header.

View File

@ -383,7 +383,7 @@ TagContainerHandle HelpItemFactory::createHelpItems(const Option* op)
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);
tc->addItem(item);
}

View File

@ -79,7 +79,7 @@ Option* createDefaultOption()
op->put(PREF_DAEMON, V_FALSE);
op->put(PREF_SEGMENT_SIZE, Util::itos((int32_t)(1024*1024)));
op->put(PREF_LISTEN_PORT, "6881-6999");
op->put(PREF_METALINK_SERVERS, "5");
op->put(PREF_METALINK_SERVERS, "1");
op->put(PREF_FOLLOW_TORRENT,
#ifdef ENABLE_BITTORRENT
V_TRUE

View File

@ -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.")
#define TEXT_METALINK_SERVERS \
_(" -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n"\
" simultaneously.\n"\
" Default: 5")
" simultaneously.")
#define TEXT_METALINK_VERSION \
_(" --metalink-version=VERSION The version of the file to download.")
#define TEXT_METALINK_LANGUAGE \