diff options
author | Pavol Rusnak <stick@gk2.sk> | 2015-07-31 18:05:42 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-08-05 09:38:20 +0200 |
commit | 7b79cbd722d35b8113d5136b06d4a8e5fd569fc6 (patch) | |
tree | 484ed735e5644daf574fbf4bc2dedfe035a29373 /src/net.cpp | |
parent | 557f8eac7aa96059270a36358642fbce93ac0478 (diff) |
limit total length of user agent comments
Reworked-By: Wladimir J. van der Laan <laanwj@gmail.com>
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index 42ca69e096..080d9bb347 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -83,6 +83,7 @@ CAddrMan addrman; int nMaxConnections = 125; int nWhiteConnections = 0; bool fAddressesInitialized = false; +std::string strSubVersion; vector<CNode*> vNodes; CCriticalSection cs_vNodes; @@ -445,7 +446,7 @@ void CNode::PushVersion() else LogPrint("net", "send version message: version %d, blocks=%d, us=%s, peer=%d\n", PROTOCOL_VERSION, nBestHeight, addrMe.ToString(), id); PushMessage("version", PROTOCOL_VERSION, nLocalServices, nTime, addrYou, addrMe, - nLocalHostNonce, FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, mapMultiArgs.count("-uacomment") ? mapMultiArgs["-uacomment"] : std::vector<string>()), nBestHeight, true); + nLocalHostNonce, strSubVersion, nBestHeight, true); } |