Browse Source

Merge pull request #7251 from brvphoenix/master

aria2: fixed the spelling for rpc-passwd and rpc-user.
lilik-openwrt-22.03
Dirk Brenken 6 years ago
committed by GitHub
parent
commit
4b4db77c29
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      net/aria2/files/aria2.init

+ 3
- 3
net/aria2/files/aria2.init View File

@ -224,7 +224,7 @@ aria2_start() {
append_setting "rpc-secret=${rpc_secret}"
elif [ -n "$rpc_user" ]; then
append_setting "rpc-user=${rpc_user}"
append_setting "rcp-passwd=${rcp-passwd}"
append_setting "rpc-passwd=${rpc_passwd}"
else
_info "It is recommand to set RPC secret."
fi
@ -235,9 +235,9 @@ aria2_start() {
unset_auth_method
fi
elif [ "$rpc_auth_method" = "user_pass" ]; then
if [ -n "$rcp_user" ]; then
if [ -n "$rpc_user" ]; then
append_setting "rpc-user=${rpc_user}"
append_setting "rcp-passwd=${rcp-passwd}"
append_setting "rpc-passwd=${rpc_passwd}"
else
_info "Please set RPC user."
unset_auth_method


Loading…
Cancel
Save