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.
1 parent 85b7c60 commit 20d1439Copy full SHA for 20d1439
index.js
@@ -585,7 +585,7 @@ Server.prototype._onHttpRequest = function (req, res) {
585
return error('bittorrent-tracker server only supports announcing one torrent at a time')
586
}
587
588
- if (s[0] === '/announce') {
+ if (s[0] === '/announce' || s[0] === '/') {
589
var ip = self._trustProxy
590
? req.headers['x-forwarded-for'] || req.connection.remoteAddress
591
: req.connection.remoteAddress.replace(REMOVE_IPV6_RE, '') // force ipv4
0 commit comments