--- src/resolver.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/resolver.c b/src/resolver.c index 6a64938..5f08ce3 100644 --- a/src/resolver.c +++ b/src/resolver.c @@ -91,15 +91,9 @@ static int resolvfile_export(void) content = g_string_new("# Generated by Connection Manager\n"); - /* - * Domains and nameservers are added in reverse so that the most - * recently appended entry is the primary one. No more than - * MAXDNSRCH/MAXNS entries are used. - */ - - for (count = 0, list = g_list_last(resolvfile_list); + for (count = 0, list = g_list_first(resolvfile_list); list && (count < MAXDNSRCH); - list = g_list_previous(list)) { + list = g_list_next(list)) { struct resolvfile_entry *entry = list->data; if (!entry->domain) -- 2.1.0 _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman