lewissbaker / cppcoro

A library of C++ coroutine abstractions for the coroutines TS
MIT License
3.43k stars 472 forks source link

fix a bug in ipv4_address::is_private_network() and avoid a compiler warning #153

Closed yaoxinliu closed 4 years ago

yaoxinliu commented 4 years ago

As per the definition of IPv4 private network, m_bytes[1] & 0xC0 should be m_bytes[1] & 0xF0

lewissbaker commented 4 years ago

Thanks for the fix!