Undo unintentional revert?

pull/1297/head
Stephen Shelton 4 years ago
parent 43ffe23f66
commit cecafb3215
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -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

@ -262,6 +262,7 @@ namespace llarp
Router::HandleSaveRC() const
{
std::string fname = our_rc_file.string();
LogWarn("WRITING RC TO DISK @ ", fname);
_rc.Write(fname.c_str());
}

Loading…
Cancel
Save