Skip to content

Commit f60ecec

Browse files
committed
remove buffer-equals dependency
1 parent 35697f5 commit f60ecec

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/server/parse-udp.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = parseUdpRequest
22

3-
var bufferEquals = require('buffer-equals')
43
var ipLib = require('ip')
54
var common = require('../common')
65

@@ -14,7 +13,7 @@ function parseUdpRequest (msg, rinfo) {
1413
type: 'udp'
1514
}
1615

17-
if (!bufferEquals(params.connectionId, common.CONNECTION_ID)) {
16+
if (!common.CONNECTION_ID.equals(params.connectionId)) {
1817
throw new Error('received packet with invalid connection id')
1918
}
2019

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"dependencies": {
2323
"bencode": "^0.8.0",
2424
"bn.js": "^4.4.0",
25-
"buffer-equals": "^1.0.3",
2625
"compact2string": "^1.2.0",
2726
"debug": "^2.0.0",
2827
"hat": "0.0.3",

0 commit comments

Comments
 (0)