Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jc3213 authored Nov 2, 2024
1 parent 1ae3fe5 commit 62d9fe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ function ParseOptions(nodes, json) {
}

(async function () {
aria2Proxy = config.proxy;
aria2Delay = config.interval;
aria2RPC = new Aria2(config.scheme, config.jsonrpc, config.secret);
aria2RPC.onmessage = aria2WebSocket;
aria2RPC.onopen = aria2RPC.onclose = aria2ClientWorker;
aria2Proxy = config.proxy;
aria2Delay = config.interval;
var [global, version] = await aria2RPC.call({method: 'aria2.getGlobalOption'}, {method: 'aria2.getVersion'});
var options = global.result;
options['min-split-size'] = getFileSize(options['min-split-size']);
Expand Down

0 comments on commit 62d9fe5

Please sign in to comment.