1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

async dns: tolerate no nameserver at startup

No need to be fatal about it, we will pick up on the nameserver
next time we try to resolve something after it appears.
This commit is contained in:
Andy Green 2021-02-02 17:10:36 +00:00
parent 3192b3cab9
commit ed01fc2d44
2 changed files with 4 additions and 4 deletions

View file

@ -910,8 +910,8 @@ lws_create_vhost(struct lws_context *context,
};
#if defined(LWS_WITH_SYS_ASYNC_DNS)
if (!n && lws_async_dns_init(context))
goto bail1;
if (!n)
lws_async_dns_init(context);
#endif
/* for the case we are adding a vhost much later, after server init */

View file

@ -1178,8 +1178,8 @@ lws_create_context(const struct lws_context_creation_info *info)
goto bail_libuv_aware;
}
#if defined(LWS_WITH_SYS_ASYNC_DNS)
if (lws_async_dns_init(context))
goto bail_libuv_aware;
lws_async_dns_init(context);
//goto bail_libuv_aware;
#endif
}