Hi Daniel,

> In case dnsproxy can't create the socket listener we
> should fall back to resolv.conf.
> 
> Reported by Kalle Valo <kalle.v...@canonical.com>
> ---
>  src/main.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/src/main.c b/src/main.c
> index 08f2555..3a8d44d 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -227,8 +227,9 @@ int main(int argc, char *argv[])
>       __connman_config_init();
>       __connman_stats_init();
>  
> +     if (__connman_dnsproxy_init(option_dnsproxy) < 0)
> +             option_dnsproxy = FALSE;
>       __connman_resolver_init(option_dnsproxy);
> -     __connman_dnsproxy_init(option_dnsproxy);

lets move this all into resolver_init. I don't wanna clutter src/main.c
with this. We should init dnsproxy from resolver.

Regards

Marcel


_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to