1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
This commit is contained in:
dr7ana 2023-12-11 11:09:59 -08:00
parent 1a7f47f5cd
commit f5d959c65a
2 changed files with 6 additions and 6 deletions

View file

@ -55,13 +55,13 @@ namespace llarp
if (net->IsBogon(addr().in4()) and BLOCK_BOGONS) if (net->IsBogon(addr().in4()) and BLOCK_BOGONS)
{ {
auto err = "Unable to verify expired RemoteRC!"; auto err = "Unable to verify expired LocalRC!";
log::info(logcat, err); log::info(logcat, err);
throw std::runtime_error{err}; throw std::runtime_error{err};
} }
if (not crypto::verify(router_id(), msg, sig)) if (not crypto::verify(router_id(), msg, sig))
throw std::runtime_error{"Failed to verify RemoteRC"}; throw std::runtime_error{"Failed to verify LocalRC"};
}); });
} }
catch (const std::exception& e) catch (const std::exception& e)

View file

@ -29,13 +29,13 @@ namespace llarp
if (net->IsBogon(addr().in4()) and BLOCK_BOGONS) if (net->IsBogon(addr().in4()) and BLOCK_BOGONS)
{ {
auto err = "Unable to verify expired RemoteRC!"; auto err = "Unable to verify RemoteRC address!";
log::info(logcat, err); log::info(logcat, err);
throw std::runtime_error{err}; throw std::runtime_error{err};
} }
if (not crypto::verify(router_id(), msg, sig)) if (not crypto::verify(router_id(), msg, sig))
throw std::runtime_error{"Failed to verify RemoteRC"}; throw std::runtime_error{"Failed to verify RemoteRC signature"};
}); });
} }
catch (const std::exception& e) catch (const std::exception& e)
@ -61,13 +61,13 @@ namespace llarp
if (net->IsBogon(addr().in4()) and BLOCK_BOGONS) if (net->IsBogon(addr().in4()) and BLOCK_BOGONS)
{ {
auto err = "Unable to verify expired RemoteRC!"; auto err = "Unable to verify expired RemoteRC address!";
log::info(logcat, err); log::info(logcat, err);
throw std::runtime_error{err}; throw std::runtime_error{err};
} }
if (not crypto::verify(router_id(), msg, sig)) if (not crypto::verify(router_id(), msg, sig))
throw std::runtime_error{"Failed to verify RemoteRC"}; throw std::runtime_error{"Failed to verify RemoteRC signature"};
}); });
} }