mirror of
https://github.com/boostorg/asio.git
synced 2026-02-23 14:02:13 +00:00
Use faster implementation for network_v4::canonical().
This commit is contained in:
@@ -123,7 +123,7 @@ public:
|
||||
/// Obtain the true network address, omitting any host bits.
|
||||
network_v4 canonical() const BOOST_ASIO_NOEXCEPT
|
||||
{
|
||||
return network_v4(network(), netmask());
|
||||
return network_v4(network(), prefix_length());
|
||||
}
|
||||
|
||||
/// Test if network is a valid host address.
|
||||
|
||||
Reference in New Issue
Block a user