This commit is contained in:
Max Lv
2017-09-12 12:57:58 +08:00
parent 277d6d0b5b
commit 0cb9cbe50d
+4 -1
View File
@@ -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");