From 206cd3b529d56a32369fc66fbdb027f69fe3a62d Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 23 Sep 2015 01:26:23 -0700 Subject: [PATCH] IPAddressV4 fixes: * Loopback addresses are not publicly routable * The Internet is not classful --- beast/net/impl/IPAddressV4.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beast/net/impl/IPAddressV4.cpp b/beast/net/impl/IPAddressV4.cpp index ce1f33a69..223445fb3 100644 --- a/beast/net/impl/IPAddressV4.cpp +++ b/beast/net/impl/IPAddressV4.cpp @@ -147,8 +147,7 @@ bool is_public (AddressV4 const& addr) { return ! is_private (addr) && - ! is_multicast (addr) && - (addr != AddressV4::broadcast (addr)); + ! is_multicast (addr); } //------------------------------------------------------------------------------