1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Server: host -> hostname (host = hostname + port)

This commit is contained in:
Chocobozzz 2016-10-23 19:41:17 +02:00
parent 2c49ca42d1
commit 3737bbafb1
16 changed files with 21 additions and 21 deletions

View file

@ -13,9 +13,9 @@ router.get('/local', getLocalClient)
// Get the client credentials for the PeerTube front end
function getLocalClient (req, res, next) {
const serverHost = constants.CONFIG.WEBSERVER.HOST
const serverHostname = constants.CONFIG.WEBSERVER.HOSTNAME
const serverPort = constants.CONFIG.WEBSERVER.PORT
let headerHostShouldBe = serverHost
let headerHostShouldBe = serverHostname
if (serverPort !== 80 && serverPort !== 443) {
headerHostShouldBe += ':' + serverPort
}