keyfile was being initialized before being set by configure call.

this made it so that snapps always use ephemeral keys.
this fixes this.
pull/1267/head
Jeff Becker 4 years ago
parent 25125511e3
commit 555b9721ce
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -189,12 +189,12 @@ 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);
if (not service->LoadKeyFile())
throw std::runtime_error("Endpoint's keyfile could not be loaded");
// autostart if requested
if (autostart)
{

Loading…
Cancel
Save