Skip to content

Commit

Permalink
Merge #15343: [doc] netaddress: Make IPv4 loopback comment more descr…
Browse files Browse the repository at this point in the history
…iptive

Summary:
87aa0b48afe5a070e6e11e502a1803da6add5197 netaddress: Make IPv4 loopback comment more descriptive (Carl Dong)
6180b5f32bbcd7ef18db772290954161806e609e netaddress: Fix indentation in IsLocal (Carl Dong)

Pull request description:

  This also makes the comment match the IPv6 comment just below this hunk.

Tree-SHA512: 9b91195e71e18156c9e013f63a6d430c67951aabb4a0c2f48f3bf852570c13887572b9e2fa52f4e1beba8685a9cae8949d4d03cd618a78f88566cf9e85dc64a8

Backport of Core [[bitcoin/bitcoin#15343 | PR15343]]

Test Plan:
  ninja

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D6476
  • Loading branch information
laanwj authored and Nico Guiton committed Jun 9, 2020
1 parent 89c98c7 commit c1e1a85
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 @@ -178,7 +178,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 c1e1a85

Please sign in to comment.