http server: fix bug in how peer ids are returned

This commit is contained in:
Feross Aboukhadijeh 2016-01-02 23:36:10 +01:00
parent b09669e45d
commit b5de10156d

View File

@ -447,7 +447,7 @@ Server.prototype._onAnnounce = function (params, cb) {
// IPv6 peers are not separate for non-compact responses
response.peers = response.peers.map(function (peer) {
return {
'peer id': peer.peerId,
'peer id': common.hexToBinary(peer.peerId),
ip: peer.ip,
port: peer.port
}