diff options
| author | Luke Dashjr <[email protected]> | 2012-07-26 00:48:39 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2012-08-01 17:49:51 +0000 |
| commit | 814efd6f1fc83afb9ed4bb3c0808ee3bab11d10d (patch) | |
| tree | 782fac39da35e54bce2a9108cdca82f21b489405 /src/netbase.cpp | |
| parent | Merge pull request #1344 from rebroad/AskForTimeFormat (diff) | |
| download | discoin-814efd6f1fc83afb9ed4bb3c0808ee3bab11d10d.tar.xz discoin-814efd6f1fc83afb9ed4bb3c0808ee3bab11d10d.zip | |
Bugfix: Fix a variety of misspellings
Diffstat (limited to 'src/netbase.cpp')
| -rw-r--r-- | src/netbase.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp index 0a54fdf46..b66c36664 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -702,7 +702,7 @@ bool CNetAddr::IsMulticast() const bool CNetAddr::IsValid() const { - // Clean up 3-byte shifted addresses caused by garbage in size field + // Cleanup 3-byte shifted addresses caused by garbage in size field // of addr messages from versions before 0.2.9 checksum. // Two consecutive addr messages look like this: // header20 vectorlen3 addr26 addr26 addr26 header20 vectorlen3 addr26 addr26 addr26... @@ -851,13 +851,13 @@ std::vector<unsigned char> CNetAddr::GetGroup() const nClass = NET_IPV4; nStartByte = 12; } - // for 6to4 tunneled addresses, use the encapsulated IPv4 address + // for 6to4 tunnelled addresses, use the encapsulated IPv4 address else if (IsRFC3964()) { nClass = NET_IPV4; nStartByte = 2; } - // for Teredo-tunneled IPv6 addresses, use the encapsulated IPv4 address + // for Teredo-tunnelled IPv6 addresses, use the encapsulated IPv4 address else if (IsRFC4380()) { vchRet.push_back(NET_IPV4); @@ -954,7 +954,7 @@ int CNetAddr::GetReachabilityFrom(const CNetAddr *paddrPartner) const default: return REACH_DEFAULT; case NET_TEREDO: return REACH_TEREDO; case NET_IPV4: return REACH_IPV4; - case NET_IPV6: return fTunnel ? REACH_IPV6_WEAK : REACH_IPV6_STRONG; // only prefer giving our IPv6 address if it's not tunneled + case NET_IPV6: return fTunnel ? REACH_IPV6_WEAK : REACH_IPV6_STRONG; // only prefer giving our IPv6 address if it's not tunnelled } case NET_TOR: switch(ourNet) { |