2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

set adb options based on supported network protocols

This commit is contained in:
Bob Halley
1999-10-30 03:40:54 +00:00
parent dce6dc45b1
commit 5d397cd3a9

View File

@@ -621,9 +621,12 @@ fctx_getaddresses(fetchctx_t *fctx) {
FCTXTRACE("getaddresses");
options = DNS_ADBFIND_WANTEVENT|DNS_ADBFIND_EMPTYEVENT;
options |= DNS_ADBFIND_INET;
res = fctx->res;
options = DNS_ADBFIND_WANTEVENT|DNS_ADBFIND_EMPTYEVENT;
if (res->dispatch4 != NULL)
options |= DNS_ADBFIND_INET;
if (res->dispatch6 != NULL)
options |= DNS_ADBFIND_INET6;
result = isc_stdtime_get(&now);
if (result != ISC_R_SUCCESS)
return (result);