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:
parent
2c49ca42d1
commit
3737bbafb1
16 changed files with 21 additions and 21 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue