[PATCH 6/9] service: Show FallbackNameservers in service API

Peter Meerwald pmeerw at pmeerw.net
Tue Sep 10 06:46:17 PDT 2013


---
 src/service.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/service.c b/src/service.c
index 42daadc..414d01f 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1562,11 +1562,17 @@ static void append_dns(DBusMessageIter *iter, void *user_data)
 		append_nameservers(iter, service->nameservers_config);
 		return;
 	} else {
+		char **ns;
+
 		if (service->nameservers)
 			append_nameservers(iter, service->nameservers);
 
 		if (service->nameservers_auto)
 			append_nameservers(iter, service->nameservers_auto);
+
+		ns = connman_setting_get_string_list("FallbackNameservers");
+		if (ns)
+			append_nameservers(iter, ns);
 	}
 }
 
-- 
1.7.9.5




More information about the connman mailing list