diff --git a/server.js b/server.js index 6b39439..b27420f 100644 --- a/server.js +++ b/server.js @@ -340,7 +340,7 @@ Server.prototype._onWebSocketRequest = function (socket, params) { } if (params.action === common.ACTIONS.ANNOUNCE) { - self.emit(common.EVENT_NAMES[params.event], params.addr) + self.emit(common.EVENT_NAMES[params.event], params.peer_id) } }) }