lewissbaker / cppcoro

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

net/ipv4_address.hpp bug #195

Open tlming16 opened 3 years ago

tlming16 commented 3 years ago

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