1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
| --- Dockerfile.mingw
+++ Dockerfile.mingw
@@ -0,7 +0,7 @@
RUN curl -L -O https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz && \
curl -L -O https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.bz2 && \
curl -L -O https://www.sqlite.org/2021/sqlite-autoconf-3360000.tar.gz && \
- curl -L -O http://zlib.net/zlib-1.2.11.tar.gz && \
+ curl -L -O http://zlib.net/fossils/zlib-1.2.11.tar.gz && \
curl -L -O https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz && \
curl -L -O https://www.libssh2.org/download/libssh2-1.9.0.tar.gz && \
curl -L -O https://github.com/libssh2/libssh2/commit/ba149e804ef653cc05ed9803dfc94519ce9328f7.patch
@@ -0,6 +0,6 @@
LIBS="-lws2_32" && \
make install
ADD https://api.github.com/repos/aria2/aria2/git/refs/heads/master version.json
-RUN git clone https://github.com/aria2/aria2 && \
- cd aria2 && autoreconf -i && ./mingw-config && make && \
+COPY . /aria2/
+RUN cd aria2 && autoreconf -i && ./mingw-config && make && \
$HOST-strip src/aria2c.exe
--- src/OptionHandlerFactory.cc
+++ src/OptionHandlerFactory.cc
@@ -0,7 +0,7 @@
{
OptionHandler* op(new NumberOptionHandler(PREF_MAX_CONNECTION_PER_SERVER,
TEXT_MAX_CONNECTION_PER_SERVER,
- "1", 1, 16, 'x'));
+ "1", 1, -1, 'x'));
op->addTag(TAG_BASIC);
op->addTag(TAG_FTP);
op->addTag(TAG_HTTP);
@@ -0,7 +0,7 @@
}
{
OptionHandler* op(new UnitNumberOptionHandler(
- PREF_MIN_SPLIT_SIZE, TEXT_MIN_SPLIT_SIZE, "20M", 1_m, 1_g, 'k'));
+ PREF_MIN_SPLIT_SIZE, TEXT_MIN_SPLIT_SIZE, "20M", 1, 1_g, 'k'));
op->addTag(TAG_BASIC);
op->addTag(TAG_FTP);
op->addTag(TAG_HTTP);
@@ -0,7 +0,7 @@
}
{
OptionHandler* op(new UnitNumberOptionHandler(
- PREF_PIECE_LENGTH, TEXT_PIECE_LENGTH, "1M", 1_m, 1_g));
+ PREF_PIECE_LENGTH, TEXT_PIECE_LENGTH, "1M", 1, 1_g));
op->addTag(TAG_ADVANCED);
op->addTag(TAG_FTP);
op->addTag(TAG_HTTP);
|