1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-23 14:46:40 +09:00

spec(Email/Verifymail): MXレコードのドメインにもBANが適用されるように (MisskeyIO#814)

This commit is contained in:
あわわわとーにゅ 2024-11-14 22:04:31 +09:00 committed by GitHub
parent a761b2e6ce
commit da43ac01a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -304,6 +304,12 @@ export class EmailService {
reason: 'mx',
};
}
if (json.mx_host?.some(host => this.utilityService.isBlockedHost(meta.bannedEmailDomains, host))) {
return {
valid: false,
reason: 'mx',
};
}
return {
valid: true,