Add http tracker in torrent too

pull/232/head
Chocobozzz 2018-01-19 08:44:30 +01:00
parent 134337bd07
commit 0edf0581a9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -769,7 +769,8 @@ export class VideoModel extends Model<VideoModel> {
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)