mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
fix: Change incorrect domain for domain lists
This commit is contained in:
parent
fc4f78162b
commit
d333787f37
|
@ -238,12 +238,11 @@ class DigitalOceanDnsApi extends DnsProviderApi {
|
|||
|
||||
@override
|
||||
Future<List<String>> domainList() async {
|
||||
final String url = '$rootAddress/domains';
|
||||
List<String> domains = [];
|
||||
|
||||
final Dio client = await getClient();
|
||||
try {
|
||||
final Response response = await client.get(url);
|
||||
final Response response = await client.get('/domains');
|
||||
domains = response.data['domains']
|
||||
.map<String>((final el) => el['name'] as String)
|
||||
.toList();
|
||||
|
|
Loading…
Reference in a new issue