minor on webfinger
This commit is contained in:
parent
3d3544e9e9
commit
47369e1b5c
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ router.get('/webfinger', allowFederation, (req, res) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const resource = req.query.resource
|
const resource = req.query.resource
|
||||||
const domain = (new url.URL(settings.baseurl)).host
|
const domain = (new url.URL(res.locals.settings.baseurl)).host
|
||||||
const [, name, req_domain] = resource.match(/acct:(.*)@(.*)/)
|
const [, name, req_domain] = resource.match(/acct:(.*)@(.*)/)
|
||||||
if (domain !== req_domain) {
|
if (domain !== req_domain) {
|
||||||
log.warn(`Bad webfinger request, requested domain "${req_domain}" instead of "${domain}"`)
|
log.warn(`Bad webfinger request, requested domain "${req_domain}" instead of "${domain}"`)
|
||||||
|
|
Loading…
Reference in a new issue