mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
回推到d292938262 (diff-d29d8326a73da875bb76462833c6db678a92c6b658fcd67e20e2fc338b51967d)
有问题。
13 lines
667 B
Diff
Executable file
13 lines
667 B
Diff
Executable file
--- a/scripts/download.pl 2020-04-12 21:41:19.548645048 +0200
|
|
+++ b/scripts/download.pl 2020-04-12 21:41:28.752479609 +0200
|
|
@@ -82,8 +82,8 @@
|
|
}
|
|
|
|
return $have_curl
|
|
- ? (qw(curl -f --connect-timeout 20 --retry 5 --location --insecure), shellwords($ENV{CURL_OPTIONS} || ''), $url)
|
|
- : (qw(wget --tries=5 --timeout=20 --no-check-certificate --output-document=-), shellwords($ENV{WGET_OPTIONS} || ''), $url)
|
|
+ ? (qw(curl -4 -f --connect-timeout 20 --retry 5 --location --insecure), shellwords($ENV{CURL_OPTIONS} || ''), $url)
|
|
+ : (qw(wget -4 --tries=5 --timeout=20 --no-check-certificate --output-document=-), shellwords($ENV{WGET_OPTIONS} || ''), $url)
|
|
;
|
|
}
|
|
|