Added test upstream dns servers

This commit is contained in:
Juan Gilsanz Polo 2023-12-11 14:29:08 +01:00
parent 3aa36c89aa
commit c3f55e9ce9
6 changed files with 198 additions and 3 deletions

View file

@ -853,4 +853,18 @@ class ApiClientV2 {
);
return ApiResponse(successful: result.successful);
}
Future<ApiResponse> testUpstreamDns({
required Map<String, dynamic> body
}) async {
final result = await HttpRequestClient.post(
urlPath: '/test_upstream_dns',
server: server,
body: body
);
return ApiResponse(
successful: result.successful,
content: result.body != null ? jsonDecode(result.body!) : null
);
}
}