Browse Source

Fix #1682

pull/1685/head
Max Lv 7 years ago
parent
commit
0cb9cbe50d
1 changed files with 4 additions and 1 deletions
  1. 5
      src/resolv.c

5
src/resolv.c

@ -154,7 +154,10 @@ resolv_init(struct ev_loop *loop, char *nameservers, int ipv6first)
default_ctx.options.tries = 2;
status = ares_init_options(&default_ctx.channel, &default_ctx.options,
ARES_OPT_NOROTATE | ARES_OPT_TIMEOUTMS | ARES_OPT_TRIES | ARES_OPT_SOCK_STATE_CB);
#if ARES_VERSION_MINOR >= 12
ARES_OPT_NOROTATE |
#endif
ARES_OPT_TIMEOUTMS | ARES_OPT_TRIES | ARES_OPT_SOCK_STATE_CB);
if (status != ARES_SUCCESS) {
FATAL("failed to initialize c-ares");

Loading…
Cancel
Save