Don't forget to load your keys

pull/1246/head
Stephen Shelton 4 years ago committed by Jeff Becker
parent 9ba0f117c7
commit 5f0cbb4625
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -192,6 +192,9 @@ namespace llarp
if (not service)
throw std::runtime_error(stringify("Failed to construct endpoint of type ", endpointType));
if (not service->LoadKeyFile())
throw std::runtime_error("Endpoint's keyfile could not be loaded");
// pass conf to service
service->Configure(conf.network, conf.dns);

@ -387,6 +387,7 @@ namespace llarp
bool
Endpoint::LoadKeyFile()
{
LogWarn("LoadKeyFile()");
const auto& keyfile = m_state->m_Keyfile;
if (!keyfile.empty())
{

Loading…
Cancel
Save