Merge branch 'master' into move-title-in-cards

pull/449/head
NaiJi ✨ 2024-03-04 12:58:48 +02:00
commit 3fb7013f84
1 changed files with 4 additions and 1 deletions

View File

@ -93,6 +93,10 @@ class DnsRecordsCubit extends ServerConnectionDependentCubit<DnsRecordsState> {
final List<DesiredDnsRecord> foundRecords = [];
try {
for (final DnsRecord pendingDnsRecord in pendingDnsRecords) {
if (pendingDnsRecord.type == 'AAAA' &&
(pendingDnsRecord.content?.startsWith('fe80::') ?? false)) {
continue;
}
if (pendingDnsRecord.name == 'selector._domainkey') {
final foundRecord = providerDnsRecords.firstWhere(
(final r) =>
@ -207,7 +211,6 @@ class DnsRecordsCubit extends ServerConnectionDependentCubit<DnsRecordsState> {
records.addAll(recordsToAdd);
}
/// TODO: Error handling?
final ServerDomain? domain = getIt<ApiConnectionRepository>().serverDomain;
await ProvidersController.currentDnsProvider!.removeDomainRecords(