diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-10-23 19:41:17 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-10-26 20:28:34 +0200 |
commit | 3737bbafb109a79f77c3047eb9b2791e6b57344e (patch) | |
tree | 60a12fceac8345fc124b3d9c045732d72395bfc3 /server/models | |
parent | 2c49ca42d14087ce8e1695759435f796a290470b (diff) | |
download | PeerTube-3737bbafb109a79f77c3047eb9b2791e6b57344e.tar.gz PeerTube-3737bbafb109a79f77c3047eb9b2791e6b57344e.tar.zst PeerTube-3737bbafb109a79f77c3047eb9b2791e6b57344e.zip |
Server: host -> hostname (host = hostname + port)
Diffstat (limited to 'server/models')
-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 05c4f51cb..be3e80598 100644 --- a/server/models/video.js +++ b/server/models/video.js | |||
@@ -102,7 +102,7 @@ VideoSchema.pre('save', function (next) { | |||
102 | function (callback) { | 102 | function (callback) { |
103 | const options = { | 103 | const options = { |
104 | announceList: [ | 104 | announceList: [ |
105 | [ constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOST + ':' + constants.CONFIG.WEBSERVER.PORT + '/tracker/socket' ] | 105 | [ constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOSTNAME + ':' + constants.CONFIG.WEBSERVER.PORT + '/tracker/socket' ] |
106 | ], | 106 | ], |
107 | urlList: [ | 107 | urlList: [ |
108 | constants.CONFIG.WEBSERVER.URL + constants.STATIC_PATHS.WEBSEED + video.filename | 108 | constants.CONFIG.WEBSERVER.URL + constants.STATIC_PATHS.WEBSEED + video.filename |