From 1a8e1b846e54ffdf05816820db76ab91b18cf997 Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 30 Jan 2023 07:43:58 -0800 Subject: [PATCH] initial commit, not even remotely done --- external/oxen-logging | 2 +- llarp/config/config.cpp | 2 ++ llarp/rpc/rpc_server.cpp | 12 +++++------- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/external/oxen-logging b/external/oxen-logging index 12c17d6eab..9f2323a2db 160000 --- a/external/oxen-logging +++ b/external/oxen-logging @@ -1 +1 @@ -Subproject commit 12c17d6eab754908cd88f05d09b9388381e47515 +Subproject commit 9f2323a2db5fc54fe8394892769eff859967f735 diff --git a/llarp/config/config.cpp b/llarp/config/config.cpp index eda628dda0..c195753c10 100644 --- a/llarp/config/config.cpp +++ b/llarp/config/config.cpp @@ -1130,6 +1130,8 @@ namespace llarp "Determines whether or not the LMQ JSON API is enabled. Defaults ", }); + conf.defineOption(); + conf.defineOption( "api", "bind", diff --git a/llarp/rpc/rpc_server.cpp b/llarp/rpc/rpc_server.cpp index 954c6d7fec..3cc05e8dbc 100644 --- a/llarp/rpc/rpc_server.cpp +++ b/llarp/rpc/rpc_server.cpp @@ -117,10 +117,8 @@ namespace llarp::rpc { return r->exitContext().GetExitEndpoint(name); } - else - { - return r->hiddenServiceContext().GetEndpointByName(name); - } + + return r->hiddenServiceContext().GetEndpointByName(name); } void @@ -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()); + if (kill_itr.is_string()) + kills.emplace(kill_itr.get()); } } else if (itr->is_string())