Skip to content

Commit 749cee1

Browse files
committed
server command line: log peer_id for web peers
1 parent 31db779 commit 749cee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ Server.prototype._onWebSocketRequest = function (socket, params) {
340340
}
341341

342342
if (params.action === common.ACTIONS.ANNOUNCE) {
343-
self.emit(common.EVENT_NAMES[params.event], params.addr)
343+
self.emit(common.EVENT_NAMES[params.event], params.peer_id)
344344
}
345345
})
346346
}

0 commit comments

Comments
 (0)