]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video.js
Server: host -> hostname (host = hostname + port)
[github/Chocobozzz/PeerTube.git] / server / models / video.js
index 05c4f51cb2d7211918e71f5c261b605c2d90b51c..be3e80598e84f96eb5290e0a44bdeca3501aa2cf 100644 (file)
@@ -102,7 +102,7 @@ VideoSchema.pre('save', function (next) {
       function (callback) {
         const options = {
           announceList: [
-            [ constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOST + ':' + constants.CONFIG.WEBSERVER.PORT + '/tracker/socket' ]
+            [ constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOSTNAME + ':' + constants.CONFIG.WEBSERVER.PORT + '/tracker/socket' ]
           ],
           urlList: [
             constants.CONFIG.WEBSERVER.URL + constants.STATIC_PATHS.WEBSEED + video.filename