Skip to content

Commit

Permalink
initial commit, not even remotely done
Browse files Browse the repository at this point in the history
  • Loading branch information
dr7ana committed Jan 30, 2023
1 parent 7ae1a1a commit 1a8e1b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion external/oxen-logging
2 changes: 2 additions & 0 deletions llarp/config/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,8 @@ namespace llarp
"Determines whether or not the LMQ JSON API is enabled. Defaults ",
});

conf.defineOption<std::string>();

conf.defineOption<std::string>(
"api",
"bind",
Expand Down
12 changes: 5 additions & 7 deletions llarp/rpc/rpc_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,8 @@ namespace llarp::rpc
{
return r->exitContext().GetExitEndpoint(name);
}
else
{
return r->hiddenServiceContext().GetEndpointByName(name);
}

return r->hiddenServiceContext().GetEndpointByName(name);
}

void
Expand Down Expand Up @@ -412,10 +410,10 @@ namespace llarp::rpc
{
if (itr->is_array())
{
for (auto kill_itr = itr->begin(); kill_itr != itr->end(); ++kill_itr)
for (auto & kill_itr : *itr)
{
if (kill_itr->is_string())
kills.emplace(kill_itr->get<std::string>());
if (kill_itr.is_string())
kills.emplace(kill_itr.get<std::string>());
}
}
else if (itr->is_string())
Expand Down

0 comments on commit 1a8e1b8

Please sign in to comment.