Skip to content

Commit

Permalink
netaddress: Make IPv4 loopback comment more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
dongcarl committed Feb 4, 2019
1 parent 6180b5f commit 87aa0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netaddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ bool CNetAddr::IsTor() const

bool CNetAddr::IsLocal() const
{
// IPv4 loopback
// IPv4 loopback (127.0.0.0/8 or 0.0.0.0/8)
if (IsIPv4() && (GetByte(3) == 127 || GetByte(3) == 0))
return true;

Expand Down

0 comments on commit 87aa0b4

Please sign in to comment.