1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

add member to rpc response indicating weither or not a peer is a service node

This commit is contained in:
Jeff Becker 2019-05-27 08:16:39 -04:00
parent 142b631301
commit 372bc40032
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -237,6 +237,7 @@ namespace llarp
[&](const ILinkSession* session, bool outbound) {
resp.emplace_back(
Response{{"ident", RouterID(session->GetPubKey()).ToString()},
{"svcnode", session->GetRemoteRC().IsPublicRouter()},
{"addr", session->GetRemoteEndpoint().ToString()},
{"outbound", outbound}});
},