Skip to content

Commit 55150a2

Browse files
committed
remove console.log
1 parent 0dc9842 commit 55150a2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

api/src/tracker/routes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ const createTrackerRoute = (action, onRequest) => async (req, res) => {
88
if (res.writableEnded) return
99
}
1010

11+
// bittorrent-tracker will only parse a single IP in x-forwarded-for, and will
12+
// fail if it includes a comma-separated list
1113
if (req.headers['x-forwarded-for']) {
1214
req.headers['x-forwarded-for'] =
1315
req.headers['x-forwarded-for'].split(',')[0]
1416
}
15-
console.log('headers', req.headers)
1617

1718
let params
1819
try {

0 commit comments

Comments
 (0)