mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #681 from chewitt/connman_dns
connman: fix DNS ordering
This commit is contained in:
commit
1472d41144
@ -0,0 +1,42 @@
|
||||
From ff413a83164b2398549ed9e94277addb9bbc36f8 Mon Sep 17 00:00:00 2001
|
||||
From: Sam Nazarko <email@samnazarko.co.uk>
|
||||
Date: Thu, 21 Jul 2016 15:59:48 +0100
|
||||
Subject: [PATCH] [package] [connman-osmc] Fix an issue where DNS servers and
|
||||
search domains are added in the reverse order
|
||||
|
||||
Signed-off-by: Sam Nazarko <email@samnazarko.co.uk>
|
||||
---
|
||||
src/resolver.c | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/resolver.c b/src/resolver.c
|
||||
index fbe4be7..c4adbc6 100644
|
||||
--- a/src/resolver.c
|
||||
+++ b/src/resolver.c
|
||||
@@ -100,9 +100,9 @@ static int resolvfile_export(void)
|
||||
* 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)
|
||||
@@ -118,9 +118,9 @@ static int resolvfile_export(void)
|
||||
if (count)
|
||||
g_string_append_printf(content, "\n");
|
||||
|
||||
- for (count = 0, list = g_list_last(resolvfile_list);
|
||||
+ for (count = 0, list = g_list_first(resolvfile_list);
|
||||
list && (count < MAXNS);
|
||||
- list = g_list_previous(list)) {
|
||||
+ list = g_list_next(list)) {
|
||||
struct resolvfile_entry *entry = list->data;
|
||||
|
||||
if (!entry->server)
|
||||
--
|
||||
2.7.4
|
||||
|
Loading…
x
Reference in New Issue
Block a user