mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
D
This commit is contained in:
parent
dab6e90f7d
commit
aabd413ed6
@ -55,13 +55,13 @@ namespace llarp
|
||||
|
||||
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);
|
||||
throw std::runtime_error{err};
|
||||
}
|
||||
|
||||
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)
|
||||
|
@ -29,13 +29,13 @@ namespace llarp
|
||||
|
||||
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);
|
||||
throw std::runtime_error{err};
|
||||
}
|
||||
|
||||
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)
|
||||
@ -61,13 +61,13 @@ namespace llarp
|
||||
|
||||
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);
|
||||
throw std::runtime_error{err};
|
||||
}
|
||||
|
||||
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"};
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user