Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Server: fix magnet tracker websocket url for remote videos

Bigard Florian8e124f999b8c
diff --git a/server/models/video.js b/server/models/video.js
index de3d9f6441..3d7c16f0d0 100644
--- a/server/models/video.js
+++ b/server/models/video.js
@@ -155,7 +155,7 @@ function generateMagnetUri () {
baseUrlWs = constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOSTNAME + ':' + constants.CONFIG.WEBSERVER.PORT
} else {
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()