mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
remove extra peer_id check
This commit is contained in:
parent
557b7f1544
commit
ea1548abb0
@ -137,7 +137,6 @@ Server.prototype._onHttpRequest = function (req, res) {
|
||||
if (!peerId) return error('invalid peer_id')
|
||||
if (peerId.length !== 20) return error('invalid peer_id')
|
||||
if (!port) return error('invalid port')
|
||||
if (!peerId) return error('invalid peer_id')
|
||||
|
||||
var ip = self._trustProxy
|
||||
? req.headers['x-forwarded-for'] || req.connection.remoteAddress
|
||||
|
Loading…
Reference in New Issue
Block a user