mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Small bug fixes
This commit is contained in:
parent
e4298cc062
commit
3c397d208f
2 changed files with 15 additions and 8 deletions
|
@ -29,6 +29,10 @@ class _TestUpstreamDnsModalState extends State<TestUpstreamDnsModal> {
|
|||
|
||||
void checkDns() async {
|
||||
final dnsProvider = Provider.of<DnsProvider>(context, listen: false);
|
||||
if (dnsProvider.dnsInfo == null) {
|
||||
setState(() => loadStatus = LoadStatus.error);
|
||||
return;
|
||||
}
|
||||
final result = await Provider.of<ServersProvider>(context, listen: false).apiClient2!.testUpstreamDns(
|
||||
body: {
|
||||
"bootstrap_dns": dnsProvider.dnsInfo!.bootstrapDns,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue