Skip to content

Commit

Permalink
Merge branch 'beta'
Browse files Browse the repository at this point in the history
  • Loading branch information
JGeek00 committed Jun 13, 2023
2 parents f5cdfc4 + d1973a5 commit c9f8c48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/models/logs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Log {
elapsedMs: json["elapsedMs"],
question: Question.fromJson(json["question"]),
reason: json["reason"],
rules: List<Rule>.from(json["rules"].map((x) => Rule.fromJson(x))),
rules: json["rules"] != null ? List<Rule>.from(json["rules"].map((x) => Rule.fromJson(x))) : [],
status: json["status"],
time: DateTime.parse(json["time"]),
upstream: json["upstream"],
Expand Down
2 changes: 1 addition & 1 deletion lib/models/server_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ServerInfoData {
dnsPort: json["dns_port"],
httpPort: json["http_port"],
protectionEnabled: json["protection_enabled"],
dhcpAvailable: json["dhcp_available"],
dhcpAvailable: json["dhcp_available"] ?? false,
running: json["running"],
version: json["version"],
language: json["language"],
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/add_server_modal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class _AddServerModalState extends State<AddServerModal> {
(version['data'].contains('a') || version['data'].contains('b')) // alpha or beta
) {
Navigator.pop(context);
widget.onUnsupportedVersion(version);
widget.onUnsupportedVersion(version['data']);
}
else {
Navigator.pop(context);
Expand Down

0 comments on commit c9f8c48

Please sign in to comment.