http: false,
udp: false,
ws: false,
- dht: false,
filter: async function (infoHash, params, cb) {
if (CONFIG.TRACKER.ENABLED === false) {
return cb(new Error('Tracker is disabled on this instance.'))
let ip: string
if (params.type === 'ws') {
- ip = params.socket.ip
+ ip = params.ip
} else {
ip = params.httpReq.ip
}