X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Ftracker.ts;h=915981f6754285a1cc4eb3a3a51323b2497cc161;hb=d29ced1a8582d99b776f664475a157adcf555d98;hp=d09b19cae872687366ca8d80b9d39aaf05b72f98;hpb=d988e9a2f83dd2f85d1afa0b98614b29a66dddf4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/tracker.ts b/server/controllers/tracker.ts index d09b19cae..915981f67 100644 --- a/server/controllers/tracker.ts +++ b/server/controllers/tracker.ts @@ -22,7 +22,6 @@ const trackerServer = new TrackerServer({ 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.')) @@ -31,7 +30,7 @@ const trackerServer = new TrackerServer({ let ip: string if (params.type === 'ws') { - ip = params.socket.ip + ip = params.ip } else { ip = params.httpReq.ip }