mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-30 12:46:52 +00:00
Fix null check on DNS check
This commit is contained in:
parent
3fbdc05469
commit
3c3cb376e2
|
@ -159,7 +159,7 @@ class ServerInstallationCubit extends Cubit<ServerInstallationState> {
|
|||
final Map<String, bool> matches = await repository.isDnsAddressesMatch(
|
||||
domainName,
|
||||
ip4,
|
||||
dataState.dnsMatches,
|
||||
dataState.dnsMatches ?? {},
|
||||
);
|
||||
|
||||
if (matches.values.every((final bool value) => value)) {
|
||||
|
|
|
@ -153,7 +153,7 @@ class ServerInstallationRepository {
|
|||
Future<Map<String, bool>> isDnsAddressesMatch(
|
||||
final String? domainName,
|
||||
final String? ip4,
|
||||
final Map<String, bool>? skippedMatches,
|
||||
final Map<String, bool> skippedMatches,
|
||||
) async {
|
||||
final List<String> addresses = <String>[
|
||||
'$domainName',
|
||||
|
@ -166,7 +166,7 @@ class ServerInstallationRepository {
|
|||
final Map<String, bool> matches = <String, bool>{};
|
||||
|
||||
for (final String address in addresses) {
|
||||
if (skippedMatches![address] ?? false) {
|
||||
if (skippedMatches[address] ?? false) {
|
||||
matches[address] = true;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue