You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.0 KiB
26 lines
1.0 KiB
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)
|
|
|