mirror of
https://github.com/logos-storage/bittorrent-tracker.git
synced 2026-02-02 20:13:28 +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…
x
Reference in New Issue
Block a user