Skip to content

Commit 1a72b3d

Browse files
dns: fix dns query cache implementation
1 parent d2a1369 commit 1a72b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cares_wrap.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ void ChannelWrap::Setup() {
881881
/* We do the call to ares_init_option for caller. */
882882
const int optmask =
883883
ARES_OPT_FLAGS | ARES_OPT_TIMEOUTMS |
884-
ARES_OPT_SOCK_STATE_CB | ARES_OPT_TRIES;
884+
ARES_OPT_SOCK_STATE_CB | ARES_OPT_TRIES | ARES_OPT_QUERY_CACHE;
885885
r = ares_init_options(&channel_, &options, optmask);
886886

887887
if (r != ARES_SUCCESS) {

0 commit comments

Comments
 (0)