fix(cloudflare): Improve DNS records convertion to Cloudflare DNS

pull/392/head
NaiJi ✨ 2023-11-22 12:09:19 +04:00
parent cd9b47b924
commit e9c881c408
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ CloudflareDnsRecord _fromDnsRecord(
final String rootDomain,
) {
String name = dnsRecord.name ?? '';
if (name != rootDomain) {
if (name != rootDomain && name != '@') {
name = '$name.$rootDomain';
}
return CloudflareDnsRecord(

View File

@ -255,7 +255,7 @@ class CloudflareDnsProvider extends DnsProvider {
type: record.type,
category: record.type == 'A'
? DnsRecordsCategory.services
: DnsRecordsCategory.other,
: DnsRecordsCategory.email,
),
);
}