2010-08-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Added bt-tracker and bt-exclude-tracker to -i list option.
	* doc/aria2c.1.txt
	* doc/xmlrpc/aria2rpc
	* src/download_helper.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-08-27 11:58:10 +00:00
parent b9522dea25
commit 33da745070
6 changed files with 53 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2010-08-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added bt-tracker and bt-exclude-tracker to -i list option.
* doc/aria2c.1.txt
* doc/xmlrpc/aria2rpc
* src/download_helper.cc
2010-08-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Don't listen on IPv6 socket for BitTorrent, DHT, XML-RPC if

View File

@ -2,12 +2,12 @@
.\" Title: aria2c
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 08/25/2010
.\" Date: 08/27/2010
.\" Manual: Aria2 Manual
.\" Source: Aria2 1.10.1
.\" Language: English
.\"
.TH "ARIA2C" "1" "08/25/2010" "Aria2 1\&.10\&.1" "Aria2 Manual"
.TH "ARIA2C" "1" "08/27/2010" "Aria2 1\&.10\&.1" "Aria2 Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@ -2673,6 +2673,28 @@ conditional\-get
enable\-async\-dns6
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
bt\-tracker
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
bt\-exclude\-tracker
.RE
.sp
These options have exactly same meaning of the ones in the command\-line options, but it just applies to the URIs it belongs to\&.
.sp
For example, the content of uri\&.txt is

View File

@ -3078,6 +3078,16 @@ conditional-get
enable-async-dns6
</p>
</li>
<li>
<p>
bt-tracker
</p>
</li>
<li>
<p>
bt-exclude-tracker
</p>
</li>
</ul></div>
<div class="paragraph"><p>These options have exactly same meaning of the ones in the
command-line options, but it just applies to the URIs it belongs to.</p></div>
@ -4354,7 +4364,7 @@ files in the program, then also delete it here.</p></div>
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
Last updated 2010-08-25 23:25:37 JST
Last updated 2010-08-27 20:49:24 JST
</div>
</div>
</body>

View File

@ -1309,6 +1309,8 @@ of URIs. These optional lines must start with white space(s).
* min-split-size
* conditional-get
* enable-async-dns6
* bt-tracker
* bt-exclude-tracker
These options have exactly same meaning of the ones in the
command-line options, but it just applies to the URIs it belongs to.

View File

@ -206,6 +206,12 @@ OptionParser.new do |opt|
opt.on("--conditional-get [BOOL]",["true","false"]){|val|
options["conditional-get"]=val||"true"
}
opt.on("--enable-async-dns6 [BOOL]",["true","false"]){|val|
options["enable-async-dns6"]=val||"true"
}
opt.on("--bt-tracker URIS"){|val| options["bt-tracker"]=val}
opt.on("--bt-exclude-tracker URIS"){|val| options["bt-exclude-tracker"]=val}
opt.on("--max-overall-download-limit LIMIT"){|val| options["max-overall-download-limit"]=val}
opt.on("--max-overall-upload-limit LIMIT"){|val| options["max-overall-upload-limit"]=val}
opt.on("-j","--max-concurrent-downloads N"){|val| options["max-concurrent-downloads"]=val}

View File

@ -163,7 +163,9 @@ const std::set<std::string>& listRequestOptions()
PREF_MAX_CONNECTION_PER_SERVER,
PREF_MIN_SPLIT_SIZE,
PREF_CONDITIONAL_GET,
PREF_ENABLE_ASYNC_DNS6
PREF_ENABLE_ASYNC_DNS6,
PREF_BT_TRACKER,
PREF_BT_EXCLUDE_TRACKER
};
static std::set<std::string> requestOptions
(vbegin(REQUEST_OPTIONS), vend(REQUEST_OPTIONS));