From ed01fc2d443bd3e9b3ad27bfc8efb7cf7b3629ee Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 2 Feb 2021 17:10:36 +0000 Subject: [PATCH] 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. --- lib/core-net/vhost.c | 4 ++-- lib/core/context.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core-net/vhost.c b/lib/core-net/vhost.c index c00548f9a..42be7bb91 100644 --- a/lib/core-net/vhost.c +++ b/lib/core-net/vhost.c @@ -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 */ diff --git a/lib/core/context.c b/lib/core/context.c index a2f62fb26..a29dbdd12 100644 --- a/lib/core/context.c +++ b/lib/core/context.c @@ -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 }