aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-10-23 19:41:17 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-10-26 20:28:34 +0200
commit3737bbafb109a79f77c3047eb9b2791e6b57344e (patch)
tree60a12fceac8345fc124b3d9c045732d72395bfc3 /server/lib
parent2c49ca42d14087ce8e1695759435f796a290470b (diff)
downloadPeerTube-3737bbafb109a79f77c3047eb9b2791e6b57344e.tar.gz
PeerTube-3737bbafb109a79f77c3047eb9b2791e6b57344e.tar.zst
PeerTube-3737bbafb109a79f77c3047eb9b2791e6b57344e.zip
Server: host -> hostname (host = hostname + port)
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/friends.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/friends.js b/server/lib/friends.js
index b2ad0bbb3..3f100545c 100644
--- a/server/lib/friends.js
+++ b/server/lib/friends.js
@@ -273,7 +273,7 @@ function isMe (url) {
273 const hostname = parsedUrl.hostname 273 const hostname = parsedUrl.hostname
274 const port = parseInt(parsedUrl.port) 274 const port = parseInt(parsedUrl.port)
275 275
276 const myHostname = constants.CONFIG.WEBSERVER.HOST 276 const myHostname = constants.CONFIG.WEBSERVER.HOSTNAME
277 const myPort = constants.CONFIG.WEBSERVER.PORT 277 const myPort = constants.CONFIG.WEBSERVER.PORT
278 278
279 return hostname === myHostname && port === myPort 279 return hostname === myHostname && port === myPort