mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Bug fixes
This commit is contained in:
parent
d1973a55db
commit
c1c8ab10a0
7 changed files with 8 additions and 8 deletions
|
@ -17,7 +17,7 @@ class NetworkInterface {
|
|||
String name;
|
||||
String hardwareAddress;
|
||||
List<String> flags;
|
||||
String gatewayIp;
|
||||
String? gatewayIp;
|
||||
List<String> ipv4Addresses;
|
||||
List<String> ipv6Addresses;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class DnsInfo {
|
||||
List<String> upstreamDns;
|
||||
String upstreamDnsFile;
|
||||
String? upstreamDnsFile;
|
||||
List<String> bootstrapDns;
|
||||
bool protectionEnabled;
|
||||
int ratelimit;
|
||||
|
|
|
@ -31,7 +31,7 @@ class EncryptionData {
|
|||
final int? portHttps;
|
||||
final int? portDnsOverTls;
|
||||
final int? portDnsOverQuic;
|
||||
final int portDnscrypt;
|
||||
final int? portDnscrypt;
|
||||
final String dnscryptConfigFile;
|
||||
final bool allowUnencryptedDoh;
|
||||
final String certificateChain;
|
||||
|
|
|
@ -46,7 +46,7 @@ class Log {
|
|||
final List<Rule> rules;
|
||||
final String? status;
|
||||
final DateTime time;
|
||||
final String upstream;
|
||||
final String? upstream;
|
||||
final List<Answer> answer;
|
||||
final int? filterId;
|
||||
final String? rule;
|
||||
|
|
|
@ -16,7 +16,7 @@ class UpdateAvailableData {
|
|||
final String? announcement;
|
||||
final String? announcementUrl;
|
||||
final bool? canAutoupdate;
|
||||
final bool disabled;
|
||||
final bool? disabled;
|
||||
String? changelog;
|
||||
|
||||
UpdateAvailableData({
|
||||
|
|
|
@ -136,7 +136,7 @@ class LogDetailsScreen extends StatelessWidget {
|
|||
subtitle: log.question.questionClass
|
||||
),
|
||||
SectionLabel(label: AppLocalizations.of(context)!.response),
|
||||
if (log.upstream != '') LogListTile(
|
||||
if (log.upstream != null && log.upstream != '') LogListTile(
|
||||
icon: Icons.dns_rounded,
|
||||
title: AppLocalizations.of(context)!.dnsServer,
|
||||
subtitle: log.upstream
|
||||
|
|
|
@ -118,7 +118,7 @@ class SelectInterfaceModal extends StatelessWidget {
|
|||
),
|
||||
const SizedBox(height: 5),
|
||||
],
|
||||
if (interfaces[index].gatewayIp != '') ...[
|
||||
if (interfaces[index].gatewayIp != null && interfaces[index].gatewayIp != '') ...[
|
||||
Row(
|
||||
children: [
|
||||
Text(
|
||||
|
@ -129,7 +129,7 @@ class SelectInterfaceModal extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
Text(
|
||||
interfaces[index].gatewayIp,
|
||||
interfaces[index].gatewayIp!,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue