cppcoro
cppcoro copied to clipboard
net/ipv4_address.hpp bug
constexpr bool is_private_network() const { return m_bytes[0] == 10 || (m_bytes[0] == 172 && (m_bytes[1] & 0xF0) == 0x10) || (m_bytes[0] == 192 && m_bytes[2] == 168); }
where
(m_bytes[0] == 192 && m_bytes[2] == 168)
should be (m_bytes[0] == 192 && m_bytes[1] == 168)
@lewissbaker