mirror of https://github.com/Chocobozzz/PeerTube
Server: fix magnet tracker websocket url for remote videos
parent
a078c1556f
commit
8e124f999b
|
@ -155,7 +155,7 @@ function generateMagnetUri () {
|
||||||
baseUrlWs = constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOSTNAME + ':' + constants.CONFIG.WEBSERVER.PORT
|
baseUrlWs = constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOSTNAME + ':' + constants.CONFIG.WEBSERVER.PORT
|
||||||
} else {
|
} else {
|
||||||
baseUrlHttp = constants.REMOTE_SCHEME.HTTP + '://' + this.podHost
|
baseUrlHttp = constants.REMOTE_SCHEME.HTTP + '://' + this.podHost
|
||||||
baseUrlWs = constants.REMOTE_SCHEME.WS + this.podHost
|
baseUrlWs = constants.REMOTE_SCHEME.WS + '://' + this.podHost
|
||||||
}
|
}
|
||||||
|
|
||||||
const xs = baseUrlHttp + constants.STATIC_PATHS.TORRENTS + this.getTorrentName()
|
const xs = baseUrlHttp + constants.STATIC_PATHS.TORRENTS + this.getTorrentName()
|
||||||
|
|
Loading…
Reference in New Issue