From 231efa35f5ccf2c6ec98b9c3bd8ddade9e6691b7 Mon Sep 17 00:00:00 2001 From: "Owain G. Ainsworth" Date: Tue, 29 Oct 2013 23:00:23 +0000 Subject: [PATCH] Provide useragent in getpeerinfo now we know it. --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index f69f835f..862b15a9 100644 --- a/server.go +++ b/server.go @@ -270,7 +270,7 @@ func (s *server) handleQuery(querymsg interface{}, peers *list.List, bannedPeers BytesRecv: 0, // TODO(oga) we need this from wire. ConnTime: peer.timeConnected, Version: peer.protocolVersion, - SubVer: "unknown", + SubVer: peer.userAgent, Inbound: peer.inbound, StartingHeight: peer.lastBlock, BanScore: 0,