🔧 设置下载目录
This commit is contained in:
@@ -259,6 +259,7 @@ impl DownloadManager {
|
|||||||
"--rpc-listen-all=false",
|
"--rpc-listen-all=false",
|
||||||
&format!("--rpc-listen-port={}", port),
|
&format!("--rpc-listen-port={}", port),
|
||||||
&format!("--user-agent={}", UA),
|
&format!("--user-agent={}", UA),
|
||||||
|
"--dir=/tmp/spark-store", // 设置下载目录为 /tmp/spark-store
|
||||||
])
|
])
|
||||||
.spawn()
|
.spawn()
|
||||||
.map_err(|e| format!("启动 aria2 失败: {}", e)).unwrap();
|
.map_err(|e| format!("启动 aria2 失败: {}", e)).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user