mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-22 14:35:07 +02:00
netaddress: Make IPv4 loopback comment more descriptive
This commit is contained in:
parent
6180b5f32b
commit
87aa0b48af
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user