We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2cd8f3f + fcf28cb commit 6ce0d51Copy full SHA for 6ce0d51
server.js
@@ -174,7 +174,7 @@ function Server (opts) {
174
}
175
var client = clients[peer.client.client]
176
// If the client is not known show 8 chars from peerId as version
177
- var version = peer.client.version || new Buffer(peer.peerId, 'hex').toString().substring(0, 8)
+ var version = peer.client.version || Buffer.from(peer.peerId, 'hex').toString().substring(0, 8)
178
if (!client[version]) {
179
client[version] = 0
180
0 commit comments