Commit 1b86808a authored by Simon Morlat's avatar Simon Morlat
Browse files

resolver should work even if no /etc/hosts

parent 0177ef2d
......@@ -248,8 +248,9 @@ static struct dns_hosts *hosts(belle_sip_simple_resolver_context_t *ctx) {
return ctx->hosts;
if (!(ctx->hosts = dns_hosts_local(&error))) {
belle_sip_error("%s dns_hosts_local error: %s", __FUNCTION__, dns_strerror(error));
return NULL;
belle_sip_warning("%s dns_hosts_local error: %s", __FUNCTION__, dns_strerror(error));
/*in case of failure, create an empty host object to make further processing happy, knowing that we can live without /etc/hosts.*/
if (ctx->base.stack->dns_user_hosts_file) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment