feat: prefer remote MCP OAuth installation

This commit is contained in:
2026-08-18 18:24:47 +00:00
parent 55e43e3451
commit 0d5e192e95
20 changed files with 449 additions and 392 deletions
+3 -2
View File
@@ -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