aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/clients.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/clients.js b/server/controllers/api/clients.js
index ce1149227..b01354195 100644
--- a/server/controllers/api/clients.js
+++ b/server/controllers/api/clients.js
@@ -13,9 +13,9 @@ router.get('/local', getLocalClient)
13 13
14// Get the client credentials for the PeerTube front end 14// Get the client credentials for the PeerTube front end
15function getLocalClient (req, res, next) { 15function getLocalClient (req, res, next) {
16 const serverHost = constants.CONFIG.WEBSERVER.HOST 16 const serverHostname = constants.CONFIG.WEBSERVER.HOSTNAME
17 const serverPort = constants.CONFIG.WEBSERVER.PORT 17 const serverPort = constants.CONFIG.WEBSERVER.PORT
18 let headerHostShouldBe = serverHost 18 let headerHostShouldBe = serverHostname
19 if (serverPort !== 80 && serverPort !== 443) { 19 if (serverPort !== 80 && serverPort !== 443) {
20 headerHostShouldBe += ':' + serverPort 20 headerHostShouldBe += ':' + serverPort
21 } 21 }