diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-19 08:44:30 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-19 08:49:04 +0100 |
commit | 0edf0581a92a2c0b5423d3947934d0f36bda1592 (patch) | |
tree | 99d4c374bcc982e9fa94029cdfaf2f05fb5c74cd /server/models/video | |
parent | 134337bd07f2639c79bcb47ed683d1b6d55357bd (diff) | |
download | PeerTube-0edf0581a92a2c0b5423d3947934d0f36bda1592.tar.gz PeerTube-0edf0581a92a2c0b5423d3947934d0f36bda1592.tar.zst PeerTube-0edf0581a92a2c0b5423d3947934d0f36bda1592.zip |
Add http tracker in torrent too
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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<VideoModel> { | |||
769 | createTorrentAndSetInfoHash = async function (videoFile: VideoFileModel) { | 769 | createTorrentAndSetInfoHash = async function (videoFile: VideoFileModel) { |
770 | const options = { | 770 | const options = { |
771 | announceList: [ | 771 | announceList: [ |
772 | [ CONFIG.WEBSERVER.WS + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT + '/tracker/socket' ] | 772 | [ CONFIG.WEBSERVER.WS + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT + '/tracker/socket' ], |
773 | [ CONFIG.WEBSERVER.URL + '/tracker/announce' ] | ||
773 | ], | 774 | ], |
774 | urlList: [ | 775 | urlList: [ |
775 | CONFIG.WEBSERVER.URL + STATIC_PATHS.WEBSEED + this.getVideoFilename(videoFile) | 776 | CONFIG.WEBSERVER.URL + STATIC_PATHS.WEBSEED + this.getVideoFilename(videoFile) |