diff options
| author | Jeff Garzik <[email protected]> | 2012-09-18 15:07:58 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-09-18 15:07:58 -0400 |
| commit | ea0796bde3483189643894c6a47d31c0dba0c486 (patch) | |
| tree | 1cfcad47fd235034085d354fe5021f100d2bda5d /src/netbase.cpp | |
| parent | Merge branch 'master' of github.com:bitcoin/bitcoin (diff) | |
| download | discoin-ea0796bde3483189643894c6a47d31c0dba0c486.tar.xz discoin-ea0796bde3483189643894c6a47d31c0dba0c486.zip | |
Trim trailing whitespace for src/*.{h,cpp}
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 b66c36664..76a3d25d3 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -246,7 +246,7 @@ bool static Socks5(string strDest, int port, SOCKET& hSocket) string strSocks5("\5\1"); strSocks5 += '\000'; strSocks5 += '\003'; strSocks5 += static_cast<char>(std::min((int)strDest.size(), 255)); - strSocks5 += strDest; + strSocks5 += strDest; strSocks5 += static_cast<char>((port >> 8) & 0xFF); strSocks5 += static_cast<char>((port >> 0) & 0xFF); ret = send(hSocket, strSocks5.c_str(), strSocks5.size(), MSG_NOSIGNAL); @@ -478,7 +478,7 @@ bool ConnectSocket(const CService &addrDest, SOCKET& hSocketRet, int nTimeout) // first connect to proxy server if (!ConnectSocketDirectly(proxy.first, hSocket, nTimeout)) return false; - + // do socks negotiation switch (proxy.second) { case 4: @@ -617,8 +617,8 @@ bool CNetAddr::IsIPv6() const bool CNetAddr::IsRFC1918() const { return IsIPv4() && ( - GetByte(3) == 10 || - (GetByte(3) == 192 && GetByte(2) == 168) || + GetByte(3) == 10 || + (GetByte(3) == 192 && GetByte(2) == 168) || (GetByte(3) == 172 && (GetByte(2) >= 16 && GetByte(2) <= 31))); } |