diff options
author | Bigard Florian <florian.bigard@gmail.com> | 2016-11-23 13:34:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-23 13:34:07 +0100 |
commit | 8e124f999b8cf7d461ef7a923711d18edc69d84c (patch) | |
tree | a53448c1807affcf117d1c1157204de435b0eefb | |
parent | a078c1556fa81e14f4e0b2239c5000c02ac0717f (diff) | |
download | PeerTube-8e124f999b8cf7d461ef7a923711d18edc69d84c.tar.gz PeerTube-8e124f999b8cf7d461ef7a923711d18edc69d84c.tar.zst PeerTube-8e124f999b8cf7d461ef7a923711d18edc69d84c.zip |
Server: fix magnet tracker websocket url for remote videos
-rw-r--r-- | server/models/video.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video.js b/server/models/video.js index de3d9f644..3d7c16f0d 100644 --- a/server/models/video.js +++ b/server/models/video.js | |||
@@ -155,7 +155,7 @@ function generateMagnetUri () { | |||
155 | baseUrlWs = constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOSTNAME + ':' + constants.CONFIG.WEBSERVER.PORT | 155 | baseUrlWs = constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOSTNAME + ':' + constants.CONFIG.WEBSERVER.PORT |
156 | } else { | 156 | } else { |
157 | baseUrlHttp = constants.REMOTE_SCHEME.HTTP + '://' + this.podHost | 157 | baseUrlHttp = constants.REMOTE_SCHEME.HTTP + '://' + this.podHost |
158 | baseUrlWs = constants.REMOTE_SCHEME.WS + this.podHost | 158 | baseUrlWs = constants.REMOTE_SCHEME.WS + '://' + this.podHost |
159 | } | 159 | } |
160 | 160 | ||
161 | const xs = baseUrlHttp + constants.STATIC_PATHS.TORRENTS + this.getTorrentName() | 161 | const xs = baseUrlHttp + constants.STATIC_PATHS.TORRENTS + this.getTorrentName() |