diff options
| author | Pavol Rusnak <[email protected]> | 2015-07-28 01:58:25 +0200 |
|---|---|---|
| committer | Pavol Rusnak <[email protected]> | 2015-07-31 16:19:23 +0200 |
| commit | 557f8eac7aa96059270a36358642fbce93ac0478 (patch) | |
| tree | 963e6f48d33b75d56f735bff136bc8dc03450192 /src/net.cpp | |
| parent | Merge pull request #6473 (diff) | |
| download | discoin-557f8eac7aa96059270a36358642fbce93ac0478.tar.xz discoin-557f8eac7aa96059270a36358642fbce93ac0478.zip | |
implement uacomment config parameter
which can add comments to user agent as per BIP-0014
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<string>()), nBestHeight, true); + nLocalHostNonce, FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, mapMultiArgs.count("-uacomment") ? mapMultiArgs["-uacomment"] : std::vector<string>()), nBestHeight, true); } |