Browse Source
They're working on old versions of Android only. Logcat: 04-10 20:50:22.854 22854 22854 E libc : Access denied finding property "net.dns1"master
Leonid Plyushch
5 years ago
2 changed files with 27 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||
diff -uNr c-ares-cares-1_16_0/ares_init.c c-ares-cares-1_16_0.mod/ares_init.c
|
|||
--- c-ares-cares-1_16_0/ares_init.c 2020-03-12 18:58:05.000000000 +0200
|
|||
+++ c-ares-cares-1_16_0.mod/ares_init.c 2020-04-10 21:00:59.756808053 +0300
|
|||
@@ -1585,20 +1585,8 @@
|
|||
* We'll only run this if we don't have any dns servers |
|||
* because this will get the same ones (if it works). */ |
|||
if (status != ARES_EOF) { |
|||
- char propname[PROP_NAME_MAX];
|
|||
- char propvalue[PROP_VALUE_MAX]="";
|
|||
- for (i = 1; i <= MAX_DNS_PROPERTIES; i++) {
|
|||
- snprintf(propname, sizeof(propname), "%s%u", DNS_PROP_NAME_PREFIX, i);
|
|||
- if (__system_property_get(propname, propvalue) < 1) {
|
|||
- status = ARES_EOF;
|
|||
- break;
|
|||
- }
|
|||
-
|
|||
- status = config_nameserver(&servers, &nservers, propvalue);
|
|||
- if (status != ARES_SUCCESS)
|
|||
- break;
|
|||
- status = ARES_EOF;
|
|||
- }
|
|||
+ config_nameserver(&servers, &nservers, "8.8.4.4");
|
|||
+ status = ARES_EOF;
|
|||
} |
|||
# endif /* HAVE___SYSTEM_PROPERTY_GET */ |
|||
#elif defined(CARES_USE_LIBRESOLV) |
Loading…
Reference in new issue