Commit fcc50ed3 authored by nanahira's avatar nanahira

add rpc secret to aria2

parent 795cc2a7
......@@ -94,7 +94,7 @@ export class DownloadStatus {
@Injectable()
export class DownloadService {
// 强制指定IPv4,接到过一个反馈无法监听v6的。默认的host值是localhost,会连v6。
aria2 = new Aria2({host: '127.0.0.1'});
aria2 = new Aria2({ host: '127.0.0.1', secret: 'mycard' });
open = this.aria2.open();
updateEmitter = new EventEmitter<void>();
......
......@@ -143,6 +143,7 @@ function createAria2c() {
'--enable-rpc',
'--rpc-allow-origin-all',
'--rpc-listen-port=6800',
'--rpc-secret=mycard',
'--continue',
'--split=10',
'--min-split-size=1M',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment