Skip to content

Commit 932f085

Browse files
yaoxinliulewissbaker
authored andcommitted
fix a bug in ipv4_address::is_private_network()
1 parent 92892f3 commit 932f085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cppcoro/net/ipv4_address.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace cppcoro::net
6666
constexpr bool is_private_network() const
6767
{
6868
return m_bytes[0] == 10 ||
69-
(m_bytes[0] == 172 && (m_bytes[1] & 0xC0) == 0x10) ||
69+
(m_bytes[0] == 172 && (m_bytes[1] & 0xF0) == 0x10) ||
7070
(m_bytes[0] == 192 && m_bytes[2] == 168);
7171
}
7272

0 commit comments

Comments
 (0)