fix: Fix error on Linux

This commit is contained in:
2022-11-08 17:43:39 +01:00
parent a1f01486fe
commit 44117c4da7
12 changed files with 45 additions and 50 deletions

View File

@@ -27,10 +27,10 @@ class MoxdnsLinuxPlugin extends MoxdnsPlatform {
continue;
}
// ignore: argument_type_not_assignable
final rr = Map<String, String>.from(record);
final rr = Map<String, dynamic>.from(record);
records.add(
SrvRecord(
rr['target']!,
rr['target']! as String,
rr['port']! as int,
rr['priority']! as int,
rr['weight']! as int,