Skip to content

Commit 6180b5f

Browse files
committed
netaddress: Fix indentation in IsLocal
1 parent 5c99bb0 commit 6180b5f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/netaddress.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,15 @@ bool CNetAddr::IsTor() const
183183
bool CNetAddr::IsLocal() const
184184
{
185185
// IPv4 loopback
186-
if (IsIPv4() && (GetByte(3) == 127 || GetByte(3) == 0))
187-
return true;
186+
if (IsIPv4() && (GetByte(3) == 127 || GetByte(3) == 0))
187+
return true;
188188

189-
// IPv6 loopback (::1/128)
190-
static const unsigned char pchLocal[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1};
191-
if (memcmp(ip, pchLocal, 16) == 0)
192-
return true;
189+
// IPv6 loopback (::1/128)
190+
static const unsigned char pchLocal[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1};
191+
if (memcmp(ip, pchLocal, 16) == 0)
192+
return true;
193193

194-
return false;
194+
return false;
195195
}
196196

197197
bool CNetAddr::IsValid() const

0 commit comments

Comments
 (0)