aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-19 14:26:32 +0100
committerChocobozzz <me@florianbigard.com>2017-12-19 14:26:32 +0100
commit232f04c809bf25952b790da5685b36f05cb19750 (patch)
treef6abb9eb97ae864cbd02d8392af95355d0149572 /server/helpers/custom-validators
parent54b38063249c0c903f13491eaa84f502f4dffe79 (diff)
downloadPeerTube-232f04c809bf25952b790da5685b36f05cb19750.tar.gz
PeerTube-232f04c809bf25952b790da5685b36f05cb19750.tar.zst
PeerTube-232f04c809bf25952b790da5685b36f05cb19750.zip
Accept domain without port for webfinger
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r--server/helpers/custom-validators/webfinger.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/webfinger.ts b/server/helpers/custom-validators/webfinger.ts
index c53db4027..1b9aad444 100644
--- a/server/helpers/custom-validators/webfinger.ts
+++ b/server/helpers/custom-validators/webfinger.ts
@@ -11,7 +11,7 @@ function isWebfingerResourceValid (value: string) {
11 11
12 const host = actorParts[1] 12 const host = actorParts[1]
13 13
14 return host === CONFIG.WEBSERVER.HOST 14 return host === CONFIG.WEBSERVER.HOSTNAME || host === CONFIG.WEBSERVER.HOST
15} 15}
16 16
17// --------------------------------------------------------------------------- 17// ---------------------------------------------------------------------------