From 0edf0581a92a2c0b5423d3947934d0f36bda1592 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 Jan 2018 08:44:30 +0100 Subject: [PATCH] Add http tracker in torrent too --- scripts/release.sh | 2 ++ server/models/video/video.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index 0285f4638..0e288a49c 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -63,6 +63,8 @@ git push origin --tag github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name" --file "$zip_name" +git push origin develop + # Update master branch git checkout master git rebase develop 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) -- 2.25.1