|
|
|
@ -61,7 +61,7 @@ namespace llarp
|
|
|
|
|
m_lokidRPCPassword = config.lokid.lokidRPCPassword;
|
|
|
|
|
|
|
|
|
|
RouterContact rc;
|
|
|
|
|
bool exists = rc.Read(m_rcPath.c_str());
|
|
|
|
|
bool exists = rc.Read(m_rcPath);
|
|
|
|
|
if (not exists and not genIfAbsent)
|
|
|
|
|
{
|
|
|
|
|
LogError("Could not read RouterContact at path ", m_rcPath);
|
|
|
|
@ -216,7 +216,7 @@ namespace llarp
|
|
|
|
|
LogInfo("Generating new key", filepath);
|
|
|
|
|
keygen(key);
|
|
|
|
|
|
|
|
|
|
if (!key.SaveToFile(filepath.c_str()))
|
|
|
|
|
if (!key.SaveToFile(filepath))
|
|
|
|
|
{
|
|
|
|
|
LogError("Failed to save new key");
|
|
|
|
|
return false;
|
|
|
|
@ -224,7 +224,7 @@ namespace llarp
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LogDebug("Loading key from file ", filepath);
|
|
|
|
|
return key.LoadFromFile(filepath.c_str());
|
|
|
|
|
return key.LoadFromFile(filepath);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|