fix(backend/UtilityService): 非標準ポート番号環境でURIのローカル判定が常にfalseになる問題を修正 (MisskeyIO#867)

This commit is contained in:
あわわわとーにゅ 2024-12-31 10:29:44 +09:00 committed by GitHub
parent 3750888c6a
commit b5a796ffd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ export class UtilityService {
@bindThis @bindThis
public isUriLocal(uri: string): boolean { public isUriLocal(uri: string): boolean {
return this.normalizeHost(this.config.hostname) === this.extractHost(uri); return this.normalizeHost(this.config.host) === this.extractHost(uri);
} }
@bindThis @bindThis