9 lines
398 B
Markdown
9 lines
398 B
Markdown
|
# Data
|
||
|
|
||
|
## Aria2
|
||
|
|
||
|
### Get list of all connected peers
|
||
|
|
||
|
:::shell
|
||
|
curl -s -X POST -d '{"jsonrpc": "2.0", "id": "", "method": "aria2.tellActive"}' http://localhost:6800/jsonrpc | jq -r '.result[].gid' | while read gid;do echo $gid; curl -s -X POST -d '{"jsonrpc": "2.0", "id": "", "method": "aria2.getPeers", "params": ["'"$gid"'"]}' http://localhost:6800/jsonrpc | jq -r '.result[].ip'; done
|