fix: FTP测试用 tools/curl(有FTP支持)

This commit is contained in:
RainySY
2026-05-14 21:50:18 +08:00
parent 43b8886642
commit 4cf1e61321

View File

@@ -1186,7 +1186,8 @@ remote_test() {
esac
;;
ftp)
if /system/bin/curl -sS --connect-timeout 15 --ftp-pasv --max-time 30 \
# 系統 curl 無 FTP用 tools/curl
if "$filepath/curl" -sS --connect-timeout 15 --ftp-pasv --max-time 30 \
-u "$remote_user:$remote_pass" --list-only "$remote_url" 2>/dev/null; then
echoRgb "FTP 認證通過" "1"
else