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/controllers/api | |
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/controllers/api')
-rw-r--r-- | server/controllers/api/clients.js | 4 |
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 |
15 | function getLocalClient (req, res, next) { | 15 | function 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 | } |