don't allow running lokid-rpc as client (#1394)

pull/1396/head
Jeff 4 years ago committed by GitHub
parent 03d6f191d1
commit ff23106852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -47,6 +47,10 @@ namespace llarp
void
LokidRpcClient::ConnectAsync(lokimq::address url)
{
if (not m_Router->IsServiceNode())
{
throw std::runtime_error("we cannot talk to lokid while not a service node");
}
LogInfo("connecting to lokid via LMQ at ", url);
m_Connection = m_lokiMQ->connect_remote(
url,

Loading…
Cancel
Save