mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 09:31:13 +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,
|
final String rootDomain,
|
||||||
) {
|
) {
|
||||||
String name = dnsRecord.name ?? '';
|
String name = dnsRecord.name ?? '';
|
||||||
if (name != rootDomain) {
|
if (name != rootDomain && name != '@') {
|
||||||
name = '$name.$rootDomain';
|
name = '$name.$rootDomain';
|
||||||
}
|
}
|
||||||
return CloudflareDnsRecord(
|
return CloudflareDnsRecord(
|
||||||
|
|
|
@ -255,7 +255,7 @@ class CloudflareDnsProvider extends DnsProvider {
|
||||||
type: record.type,
|
type: record.type,
|
||||||
category: record.type == 'A'
|
category: record.type == 'A'
|
||||||
? DnsRecordsCategory.services
|
? DnsRecordsCategory.services
|
||||||
: DnsRecordsCategory.other,
|
: DnsRecordsCategory.email,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue