mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-19 04:31:36 +00:00
http server: fix bug in how peer ids are returned
This commit is contained in:
parent
b09669e45d
commit
b5de10156d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user