diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-19 14:26:32 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-19 14:26:32 +0100 |
commit | 232f04c809bf25952b790da5685b36f05cb19750 (patch) | |
tree | f6abb9eb97ae864cbd02d8392af95355d0149572 /server/helpers | |
parent | 54b38063249c0c903f13491eaa84f502f4dffe79 (diff) | |
download | PeerTube-232f04c809bf25952b790da5685b36f05cb19750.tar.gz PeerTube-232f04c809bf25952b790da5685b36f05cb19750.tar.zst PeerTube-232f04c809bf25952b790da5685b36f05cb19750.zip |
Accept domain without port for webfinger
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/custom-validators/webfinger.ts | 2 |
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 | // --------------------------------------------------------------------------- |