File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11var bufferEqual = require ( 'buffer-equal' )
2+ var ipLib = require ( 'ip' )
23var common = require ( './common' )
34
45
@@ -38,7 +39,7 @@ function parseUdpRequest (msg, rinfo) {
3839 params . ip = msg . readUInt32BE ( 84 ) // optional
3940 params . ip = params . ip ?
4041 ipLib . toString ( params . ip ) :
41- params . ip = rinfo . address
42+ rinfo . address
4243 params . key = msg . readUInt32BE ( 88 ) // TODO: what is this for?
4344 params . numwant = msg . readUInt32BE ( 92 ) // optional
4445 // never send more than MAX_ANNOUNCE_PEERS or else the UDP packet will get bigger than
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ var dgram = require('dgram')
66var EventEmitter = require ( 'events' ) . EventEmitter
77var http = require ( 'http' )
88var inherits = require ( 'inherits' )
9- var ipLib = require ( 'ip' )
109var portfinder = require ( 'portfinder' )
1110var series = require ( 'run-series' )
1211var string2compact = require ( 'string2compact' )
You can’t perform that action at this time.
0 commit comments