rpc server fixups for win32:

* RoutePoker::Enable calls RoutePoker::Up so remove additional call to RoutePoker::Up
* allow specifying null exit via rpc
pull/1643/head
Jeff Becker 3 years ago
parent 7bd38a44c1
commit 2458b5fd71
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -402,7 +402,7 @@ namespace llarp::rpc
{
service::Address addr;
const auto exit_str = exit_itr->get<std::string>();
if (service::NameIsValid(exit_str))
if (service::NameIsValid(exit_str) or exit_str == "null")
{
lnsExit = exit_str;
}
@ -472,7 +472,6 @@ namespace llarp::rpc
}
auto onGoodResult = [r, reply](std::string reason) {
r->routePoker().Enable();
r->routePoker().Up();
reply(CreateJSONResponse(reason));
};
if (not shouldSendAuth)

Loading…
Cancel
Save