[PATCH] Resolver: parse hosts file entries

Thibault Charbonnier thibaultcha at fastmail.com
Tue Feb 28 07:50:16 UTC 2017


On 2/27/17 7:45 PM, Thibault Charbonnier wrote:
> +    if (r->hostsfile.len > 0
> +        && ngx_resolver_parse_hostsfile(cf, r, r->hostsfile)

My bad, the third argument here can probably be removed. I moved the 
hosts file path to the resolver struct at some point in order to 
_eventually_ implement some sort or reloading in the future.

> +        != NGX_OK)
> +    {
> +        return NULL;
> +    }
> +
>        return r;
>    }


More information about the nginx-devel mailing list