mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 17:11:14 +00:00
fix(cloudflare): Improve DNS records convertion to Cloudflare DNS
This commit is contained in:
parent
cd9b47b924
commit
e9c881c408
|
@ -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(
|
||||
|
|
|
@ -255,7 +255,7 @@ class CloudflareDnsProvider extends DnsProvider {
|
|||
type: record.type,
|
||||
category: record.type == 'A'
|
||||
? DnsRecordsCategory.services
|
||||
: DnsRecordsCategory.other,
|
||||
: DnsRecordsCategory.email,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue