aboutsummaryrefslogtreecommitdiff
path: root/src/netaddress.cpp
diff options
context:
space:
mode:
authorCarl Dong <accounts@carldong.me>2019-02-04 13:47:46 -0500
committerCarl Dong <accounts@carldong.me>2019-02-04 13:47:46 -0500
commit6180b5f32bbcd7ef18db772290954161806e609e (patch)
tree15911f52894fa8507f653e8ef46715b374eaf339 /src/netaddress.cpp
parent5c99bb00470057f573f1d76b76e744a6ccd65b08 (diff)
netaddress: Fix indentation in IsLocal
Diffstat (limited to 'src/netaddress.cpp')
-rw-r--r--src/netaddress.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/netaddress.cpp b/src/netaddress.cpp
index a0c7f8e3c2..04b51c0b67 100644
--- a/src/netaddress.cpp
+++ b/src/netaddress.cpp
@@ -183,15 +183,15 @@ bool CNetAddr::IsTor() const
bool CNetAddr::IsLocal() const
{
// IPv4 loopback
- if (IsIPv4() && (GetByte(3) == 127 || GetByte(3) == 0))
- return true;
+ if (IsIPv4() && (GetByte(3) == 127 || GetByte(3) == 0))
+ return true;
- // IPv6 loopback (::1/128)
- static const unsigned char pchLocal[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1};
- if (memcmp(ip, pchLocal, 16) == 0)
- return true;
+ // IPv6 loopback (::1/128)
+ static const unsigned char pchLocal[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1};
+ if (memcmp(ip, pchLocal, 16) == 0)
+ return true;
- return false;
+ return false;
}
bool CNetAddr::IsValid() const