Skip to content

Commit

Permalink
update weiss lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Notsfsssf committed Feb 21, 2021
1 parent da1e700 commit 480d981
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified android/weiss/weiss.aar
Binary file not shown.
4 changes: 2 additions & 2 deletions lib/network/onezero_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import 'package:pixez/models/onezero_response.dart';

class OnezeroClient {
Dio httpClient;
static const String URL_DNS_RESOLVER = "https://1.0.0.1";
static const String URL_DNS_RESOLVER = "https://cloudflare-dns.com";
OnezeroClient() {
this.httpClient =
Dio(BaseOptions(baseUrl: URL_DNS_RESOLVER, connectTimeout: 5000));
Expand All @@ -47,7 +47,7 @@ class OnezeroClient {
Future<OnezeroResponse> queryDns(String name) async {
Response response = await httpClient.get('/dns-query',
options: Options(
headers: {'accept': 'application/dns-json', 'Host': '1.0.0.1'},
headers: {'accept': 'application/dns-json', 'Host': 'cloudflare-dns.com'},
),
queryParameters: {
'name': name,
Expand Down

0 comments on commit 480d981

Please sign in to comment.