From 749cee14658ea6c7c8a430e8251000b53c5870f2 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 27 May 2015 12:58:50 +0200 Subject: [PATCH] server command line: log peer_id for web peers --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }) }