mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Require port in ips_fixed (RIPD-892)
This commit is contained in:
@@ -211,6 +211,12 @@ public:
|
||||
|
||||
for (auto const& remote_address : addresses)
|
||||
{
|
||||
if (remote_address.port () == 0)
|
||||
{
|
||||
throw std::runtime_error ("Port not specified for address:" +
|
||||
remote_address.to_string ());
|
||||
}
|
||||
|
||||
auto result (state->fixed.emplace (std::piecewise_construct,
|
||||
std::forward_as_tuple (remote_address),
|
||||
std::make_tuple (std::ref (m_clock))));
|
||||
|
||||
Reference in New Issue
Block a user