mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
@@ -41,17 +41,17 @@ bool
|
||||
isAddress(std::string_view hostname)
|
||||
{
|
||||
boost::system::error_code ec;
|
||||
asio::ip::make_address(hostname.data(), ec);
|
||||
asio::ip::make_address(hostname, ec);
|
||||
if (ec == boost::system::errc::success) {
|
||||
return true;
|
||||
}
|
||||
|
||||
asio::ip::make_network_v4(hostname.data(), ec);
|
||||
asio::ip::make_network_v4(hostname, ec);
|
||||
if (ec == boost::system::errc::success) {
|
||||
return true;
|
||||
}
|
||||
|
||||
asio::ip::make_network_v6(hostname.data(), ec);
|
||||
asio::ip::make_network_v6(hostname, ec);
|
||||
return ec == boost::system::errc::success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user