mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-05 04:40:37 +00:00
Replaced old http service with new one
This commit is contained in:
parent
39cdcf648d
commit
48f33eee9b
14 changed files with 466 additions and 431 deletions
|
@ -42,10 +42,10 @@ class DnsProvider with ChangeNotifier {
|
|||
_loadStatus = LoadStatus.loading;
|
||||
}
|
||||
|
||||
final result = await _serversProvider!.apiClient!.getDnsInfo();
|
||||
final result = await _serversProvider!.apiClient2!.getDnsInfo();
|
||||
|
||||
if (result['result'] == 'success') {
|
||||
_dnsInfo = result['data'];
|
||||
if (result.successful == true) {
|
||||
_dnsInfo = result.content as DnsInfo;
|
||||
_loadStatus = LoadStatus.loaded;
|
||||
notifyListeners();
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue