mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-10 11:28:27 +01:00
don't check range ffor unspecified address
This commit is contained in:
parent
bea384abea
commit
4f3333c841
1 changed files with 1 additions and 0 deletions
|
@ -524,6 +524,7 @@ namespace net
|
||||||
bool IsInReservedRange (const boost::asio::ip::address& host)
|
bool IsInReservedRange (const boost::asio::ip::address& host)
|
||||||
{
|
{
|
||||||
// https://en.wikipedia.org/wiki/Reserved_IP_addresses
|
// https://en.wikipedia.org/wiki/Reserved_IP_addresses
|
||||||
|
if (host.is_unspecified ()) return false;
|
||||||
if(host.is_v4())
|
if(host.is_v4())
|
||||||
{
|
{
|
||||||
static const std::vector< std::pair<uint32_t, uint32_t> > reservedIPv4Ranges {
|
static const std::vector< std::pair<uint32_t, uint32_t> > reservedIPv4Ranges {
|
||||||
|
|
Loading…
Add table
Reference in a new issue