Skip to content

Commit

Permalink
Merge pull request #96 from neiljerram/allow-240
Browse files Browse the repository at this point in the history
Treat 240.0.0.0/8 IPv4 range like RFC 1918 ranges
  • Loading branch information
Neil Jerram committed Jul 7, 2021
2 parents 274dc2e + 5cc1834 commit 670b09e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ ip4_classify(ip4_addr ad)
if (b == 0x7f)
return IADDR_HOST | SCOPE_HOST;
else if ((b == 0x0a) ||
(b == 0xf0) ||
((a & 0xffff0000) == 0xc0a80000) ||
((a & 0xfff00000) == 0xac100000))
return IADDR_HOST | SCOPE_SITE;
Expand Down

0 comments on commit 670b09e

Please sign in to comment.