Commit 75f0eb14 authored by nanahira's avatar nanahira

change aria2 default port

parent 9e724d91
......@@ -94,7 +94,7 @@ export class DownloadStatus {
@Injectable()
export class DownloadService {
// 强制指定IPv4,接到过一个反馈无法监听v6的。默认的host值是localhost,会连v6。
aria2 = new Aria2({ host: '127.0.0.1', secret: 'mycard' });
aria2 = new Aria2({ host: '127.0.0.1', port: 6860, secret: 'mycard' });
open = this.aria2.open();
updateEmitter = new EventEmitter<void>();
......
......@@ -142,7 +142,7 @@ function createAria2c() {
aria2c = child_process.spawn(aria2c_path, [
'--enable-rpc',
'--rpc-allow-origin-all',
'--rpc-listen-port=6800',
'--rpc-listen-port=6860',
'--rpc-secret=mycard',
'--continue',
'--split=10',
......
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