aboutsummaryrefslogtreecommitdiff
path: root/src/rpcnet.cpp
diff options
context:
space:
mode:
authorPavol Rusnak <stick@gk2.sk>2015-07-31 18:05:42 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-08-05 09:38:20 +0200
commit7b79cbd722d35b8113d5136b06d4a8e5fd569fc6 (patch)
tree484ed735e5644daf574fbf4bc2dedfe035a29373 /src/rpcnet.cpp
parent557f8eac7aa96059270a36358642fbce93ac0478 (diff)
limit total length of user agent comments
Reworked-By: Wladimir J. van der Laan <laanwj@gmail.com>
Diffstat (limited to 'src/rpcnet.cpp')
-rw-r--r--src/rpcnet.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp
index f9c7d3ad30..2528e2cbd5 100644
--- a/src/rpcnet.cpp
+++ b/src/rpcnet.cpp
@@ -443,8 +443,7 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp)
UniValue obj(UniValue::VOBJ);
obj.push_back(Pair("version", CLIENT_VERSION));
- obj.push_back(Pair("subversion",
- FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, mapMultiArgs.count("-uacomment") ? mapMultiArgs["-uacomment"] : std::vector<string>())));
+ obj.push_back(Pair("subversion", strSubVersion));
obj.push_back(Pair("protocolversion",PROTOCOL_VERSION));
obj.push_back(Pair("localservices", strprintf("%016x", nLocalServices)));
obj.push_back(Pair("timeoffset", GetTimeOffset()));