From 3737bbafb109a79f77c3047eb9b2791e6b57344e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 23 Oct 2016 19:41:17 +0200 Subject: Server: host -> hostname (host = hostname + port) --- server/controllers/api/clients.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/controllers/api/clients.js') 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) // 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 } -- cgit v1.2.3