mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-26 02:33:41 +00:00
Fix #1682
This commit is contained in:
+4
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user