mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 06:10:58 +00:00
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
22 lines
376 B
C++
22 lines
376 B
C++
#pragma once
|
|
|
|
#include <boost/asio/ip/address_v6.hpp>
|
|
|
|
namespace beast::ip {
|
|
|
|
using AddressV6 = boost::asio::ip::address_v6;
|
|
|
|
/**
|
|
* Returns `true` if the address is a private unroutable address.
|
|
*/
|
|
bool
|
|
isPrivate(AddressV6 const& addr);
|
|
|
|
/**
|
|
* Returns `true` if the address is a public routable address.
|
|
*/
|
|
bool
|
|
isPublic(AddressV6 const& addr);
|
|
|
|
} // namespace beast::ip
|