From 557f8eac7aa96059270a36358642fbce93ac0478 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 28 Jul 2015 01:58:25 +0200 Subject: implement uacomment config parameter which can add comments to user agent as per BIP-0014 --- src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net.cpp') diff --git a/src/net.cpp b/src/net.cpp index 3cece520d..42ca69e09 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -445,7 +445,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, std::vector()), nBestHeight, true); + nLocalHostNonce, FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, mapMultiArgs.count("-uacomment") ? mapMultiArgs["-uacomment"] : std::vector()), nBestHeight, true); } -- cgit v1.2.3