Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/ipv4_address.hpp bug #195

Open
tlming16 opened this issue Mar 17, 2021 · 0 comments
Open

net/ipv4_address.hpp bug #195

tlming16 opened this issue Mar 17, 2021 · 0 comments

Comments

@tlming16
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant