feat: prefer remote MCP OAuth installation
This commit is contained in:
@@ -29,7 +29,8 @@ ding_hash_file() {
|
||||
|
||||
ding_fetch() {
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
if ding_fetch_http="$(curl --fail --location --silent --show-error --connect-timeout 10 --max-time 300 \
|
||||
if ding_fetch_http="$(curl --fail --location --silent --show-error --connect-timeout 10 --max-time 90 \
|
||||
--speed-time 20 --speed-limit 1024 \
|
||||
--write-out '%{http_code}' --output "$2" "$1")"; then
|
||||
return 0
|
||||
else
|
||||
@@ -47,7 +48,7 @@ ding_fetch() {
|
||||
return 1
|
||||
elif command -v wget >/dev/null 2>&1; then
|
||||
ding_wget_log="${2}.wget.log"
|
||||
if wget --https-only --timeout=300 --server-response --output-document="$2" "$1" 2>"$ding_wget_log"; then
|
||||
if wget --https-only --timeout=90 --server-response --output-document="$2" "$1" 2>"$ding_wget_log"; then
|
||||
rm -f "$ding_wget_log"
|
||||
return 0
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user