From c17b98a9fcb502846147fe54560c57e52c80d4ff Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 13 Mar 2015 01:09:01 +0900 Subject: [PATCH] Don't send back rpc-secret option value in aria2.getGlobalOption RPC method --- src/RpcMethodImpl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RpcMethodImpl.cc b/src/RpcMethodImpl.cc index 7ad466dd..9dd1d65d 100644 --- a/src/RpcMethodImpl.cc +++ b/src/RpcMethodImpl.cc @@ -1163,7 +1163,7 @@ std::unique_ptr GetGlobalOptionRpcMethod::process auto result = Dict::g(); for(size_t i = 0, len = e->getOption()->getTable().size(); i < len; ++i) { PrefPtr pref = option::i2p(i); - if(!e->getOption()->defined(pref)) { + if(pref == PREF_RPC_SECRET || !e->getOption()->defined(pref)) { continue; } const OptionHandler* h = getOptionParser()->find(pref);