From 0edf0581a92a2c0b5423d3947934d0f36bda1592 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 Jan 2018 08:44:30 +0100 Subject: Add http tracker in torrent too --- server/models/video/video.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/models/video/video.ts') diff --git a/server/models/video/video.ts b/server/models/video/video.ts index d22d57310..77c0400d8 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -769,7 +769,8 @@ export class VideoModel extends Model { createTorrentAndSetInfoHash = async function (videoFile: VideoFileModel) { const options = { announceList: [ - [ CONFIG.WEBSERVER.WS + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT + '/tracker/socket' ] + [ CONFIG.WEBSERVER.WS + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT + '/tracker/socket' ], + [ CONFIG.WEBSERVER.URL + '/tracker/announce' ] ], urlList: [ CONFIG.WEBSERVER.URL + STATIC_PATHS.WEBSEED + this.getVideoFilename(videoFile) -- cgit v1.2.3