1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Fix webfinger validator

This commit is contained in:
Chocobozzz 2017-12-21 10:16:20 +01:00
parent 225a89c2af
commit 604abfbef5
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 2 additions and 5 deletions

View file

@ -11,8 +11,7 @@ function isWebfingerResourceValid (value: string) {
if (actorParts.length !== 2) return false
const host = actorParts[1]
return sanitizeHost(host, REMOTE_SCHEME.HTTP) === CONFIG.WEBSERVER.HOSTNAME
return sanitizeHost(host, REMOTE_SCHEME.HTTP) === CONFIG.WEBSERVER.HOST
}
// ---------------------------------------------------------------------------