Don't send back rpc-secret option value in aria2.getGlobalOption RPC method

pull/353/head
Tatsuhiro Tsujikawa 2015-03-13 01:09:01 +09:00
parent 762ab15450
commit c17b98a9fc
1 changed files with 1 additions and 1 deletions

View File

@ -1163,7 +1163,7 @@ std::unique_ptr<ValueBase> 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);